diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-06 23:58:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-07 00:13:58 +0100 |
commit | 5b84559a76f30755019d6a0e6b2ccc9bbe0b3c56 (patch) | |
tree | fcc49266819a598816ba0a1a3e7698b552dea1a3 /src | |
parent | 5a0d49a47cbfd1d50bbb03118972d0212cbd30f0 (diff) |
activate: fix uninitialized memory
Diffstat (limited to 'src')
-rw-r--r-- | src/activate/activate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activate/activate.c b/src/activate/activate.c index cf8c5cebdb..b3ef428cee 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -188,7 +188,7 @@ static int launch(char* name, char **argv, char **env, int fds) { length = strv_length(arg_environ); /* PATH, TERM, HOME, USER, LISTEN_FDS, LISTEN_PID, NULL */ - envp = new(char *, length + 7); + envp = new0(char *, length + 7); STRV_FOREACH(s, arg_environ) { if (strchr(*s, '=')) |