From: Evgeny Vereshchagin Date: Sun, 26 Nov 2017 11:46:56 +0000 (+0300) Subject: exec-util: initialize `new` before using it (#7471) X-Git-Tag: v236~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f19974091b4420151ee86acbace0868a56a9506;p=thirdparty%2Fsystemd.git exec-util: initialize `new` before using it (#7471) CID #1383004 --- diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index be86336e14b..82ccbdf5ecd 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