summaryrefslogtreecommitdiff
path: root/src/basic/exec-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/exec-util.c')
-rw-r--r--src/basic/exec-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c
index ade8511466..82ccbdf5ec 100644
--- a/src/basic/exec-util.c
+++ b/src/basic/exec-util.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
@@ -255,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