projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b45f436
)
exec-util: initialize `new` before using it (#7471)
author
Evgeny Vereshchagin
<evvers@ya.ru>
Sun, 26 Nov 2017 11:46:56 +0000
(14:46 +0300)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 26 Nov 2017 11:46:56 +0000
(12:46 +0100)
CID #1383004
src/basic/exec-util.c
patch
|
blob
|
history
diff --git
a/src/basic/exec-util.c
b/src/basic/exec-util.c
index
be86336
..
82ccbdf
100644
(file)
--- 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