chiark / gitweb /
sysusers: initialize r
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 19 Aug 2014 21:27:44 +0000 (23:27 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 19 Aug 2014 21:27:44 +0000 (23:27 +0200)
Needed for the stdin case where it could otherwise end up being used
uninitialized.

src/sysusers/sysusers.c

index 1ff0e21a06eefaa389fed2e9a6557892f62f380d..b889ed0536dd41b92232e554e6ec6cdaa1c955a6 100644 (file)
@@ -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);