From f330261d3668acbba7d9f31d7981ae97dd2794ee Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sun, 26 Nov 2017 14:46:56 +0300 Subject: exec-util: initialize `new` before using it (#7471) CID #1383004 --- src/basic/exec-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic/exec-util.c') diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index 7a4dab03c..f96a78aab 100644 --- a/src/basic/exec-util.c +++ b/src/basic/exec-util.c @@ -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 -- cgit v1.2.3