chiark / gitweb /
exec-util: initialize `new` before using it (#7471)
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 26 Nov 2017 11:46:56 +0000 (14:46 +0300)
committerSven Eden <yamakuzure@gmx.net>
Sun, 26 Nov 2017 11:46:56 +0000 (14:46 +0300)
CID #1383004

src/basic/exec-util.c

index 7a4dab03c07fecda09e42fb8de0463c140d90d5d..f96a78aabbc95f048b9776ccf90c56df8e6c0333 100644 (file)
@@ -260,7 +260,7 @@ int execute_directories(
 static int gather_environment_generate(int fd, void *arg) {
         char ***env = arg, **x, **y;
         _cleanup_fclose_ FILE *f = NULL;
-        _cleanup_strv_free_ char **new;
+        _cleanup_strv_free_ char **new = NULL;
         int r;
 
         /* Read a series of VAR=value assignments from fd, use them to update the list of