X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Factivate%2Factivate.c;h=b3ef428cee16c88ec5f8af7df835db32da5a42d7;hp=cf8c5cebdb98115c626283cff7f4eb9b50c383f4;hb=5b84559a76f30755019d6a0e6b2ccc9bbe0b3c56;hpb=5a0d49a47cbfd1d50bbb03118972d0212cbd30f0 diff --git a/src/activate/activate.c b/src/activate/activate.c index cf8c5cebd..b3ef428ce 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, '='))