chiark / gitweb /
util: fix missing memory initialization
[elogind.git] / src / util.c
index cdfc9e0158828f70d6adbcd4550e3973739faaf1..6cbc7ce4770c5e232ae72fd54b48b6b1ffc45283 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;