summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-19 23:27:44 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-19 23:27:44 +0200
commitc46409021fa9d161c587c9e364ec629256265a75 (patch)
tree9ee4fbba5184f9b4dbe5f8ee679830b878cea19d
parent5f02e26ca7c039837dbaea63f3d3664fe45c26b9 (diff)
sysusers: initialize r
Needed for the stdin case where it could otherwise end up being used uninitialized.
-rw-r--r--src/sysusers/sysusers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index 1ff0e21a06..b889ed0536 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);