chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a0d49a
)
activate: fix uninitialized memory
author
Lennart Poettering
<lennart@poettering.net>
Wed, 6 Nov 2013 22:58:43 +0000
(23:58 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 6 Nov 2013 23:13:58 +0000
(
00:13
+0100)
src/activate/activate.c
patch
|
blob
|
history
diff --git
a/src/activate/activate.c
b/src/activate/activate.c
index cf8c5cebdb98115c626283cff7f4eb9b50c383f4..b3ef428cee16c88ec5f8af7df835db32da5a42d7 100644
(file)
--- 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 */
length = strv_length(arg_environ);
/* PATH, TERM, HOME, USER, LISTEN_FDS, LISTEN_PID, NULL */
- envp = new(char *, length + 7);
+ envp = new
0
(char *, length + 7);
STRV_FOREACH(s, arg_environ) {
if (strchr(*s, '='))
STRV_FOREACH(s, arg_environ) {
if (strchr(*s, '='))