From 5b84559a76f30755019d6a0e6b2ccc9bbe0b3c56 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 6 Nov 2013 23:58:43 +0100 Subject: [PATCH] activate: fix uninitialized memory --- src/activate/activate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '=')) -- 2.30.2