activate: fix uninitialized memory

This commit is contained in:
Lennart Poettering
2013-11-07 00:13:58 +01:00
parent 5a0d49a47c
commit 5b84559a76
+1 -1
View File
@@ -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, '='))