[systemd-commits] src/sysusers

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Tue Aug 19 14:29:01 PDT 2014


 src/sysusers/sysusers.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c46409021fa9d161c587c9e364ec629256265a75
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Tue Aug 19 23:27:44 2014 +0200

    sysusers: initialize r
    
    Needed for the stdin case where it could otherwise end up being used
    uninitialized.

diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
index 1ff0e21..b889ed0 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);
 



More information about the systemd-commits mailing list