From c46409021fa9d161c587c9e364ec629256265a75 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Tue, 19 Aug 2014 23:27:44 +0200 Subject: [PATCH] sysusers: initialize r Needed for the stdin case where it could otherwise end up being used uninitialized. --- src/sysusers/sysusers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 1ff0e21a06e..b889ed0536d 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -1693,7 +1693,7 @@ static int read_config_file(const char *fn, bool ignore_enoent) { FILE *f = NULL; char line[LINE_MAX]; unsigned v = 0; - int r; + int r = 0; assert(fn);