chiark / gitweb /
util: fix missing memory initialization
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2010 03:23:05 +0000 (05:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2010 03:23:34 +0000 (05:23 +0200)
src/util.c

index cdfc9e0..6cbc7ce 100644 (file)
@@ -2782,7 +2782,7 @@ fail:
 
 char **replace_env_argv(char **argv, char **env) {
         char **r, **i;
-        unsigned k;
+        unsigned k = 0;
 
         if (!(r = new(char*, strv_length(argv)+1)))
                 return NULL;