From 3f19974091b4420151ee86acbace0868a56a9506 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sun, 26 Nov 2017 14:46:56 +0300 Subject: [PATCH] exec-util: initialize `new` before using it (#7471) CID #1383004 --- src/basic/exec-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index be86336e14..82ccbdf5ec 100644 --- a/src/basic/exec-util.c +++ b/src/basic/exec-util.c @@ -256,7 +256,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