summaryrefslogtreecommitdiff
path: root/src/basic/exec-util.c
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2017-11-26 14:46:56 +0300
committerSven Eden <yamakuzure@gmx.net>2017-11-26 14:46:56 +0300
commitf330261d3668acbba7d9f31d7981ae97dd2794ee (patch)
tree1e58b15c2d508562545a399ebce2b0ac9f14a2ce /src/basic/exec-util.c
parent85f87c8aa73540e3ae12c7546a69bb7c1c2bb6ce (diff)
exec-util: initialize `new` before using it (#7471)
CID #1383004
Diffstat (limited to 'src/basic/exec-util.c')
-rw-r--r--src/basic/exec-util.c2
1 files changed, 1 insertions, 1 deletions
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