diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-18 14:19:04 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-18 14:19:05 +0900 |
commit | dd5c88a7a58397ee379b6fef873de4eb632c89a7 (patch) | |
tree | 6aca85c58c505f3220c576569f42da33da441d72 /sub-process.c | |
parent | d9f5ea42ff04432d2e41c3d3d7d97a1eabe4f4f5 (diff) | |
parent | 2944a94c6b74d3941f63d1f4eee5bdfbbf5cd400 (diff) | |
download | git-dd5c88a7a58397ee379b6fef873de4eb632c89a7.tar.gz git-dd5c88a7a58397ee379b6fef873de4eb632c89a7.tar.xz |
Merge branch 'tg/memfixes' into maint
Fixes for a handful memory access issues identified by valgrind.
* tg/memfixes:
sub-process: use child_process.args instead of child_process.argv
http-push: fix construction of hex value from path
path.c: fix uninitialized memory access
Diffstat (limited to 'sub-process.c')
-rw-r--r-- | sub-process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sub-process.c b/sub-process.c index fcc4832c1..648b3a394 100644 --- a/sub-process.c +++ b/sub-process.c @@ -74,13 +74,12 @@ int subprocess_start(struct hashmap *hashmap, struct subprocess_entry *entry, co { int err; struct child_process *process; - const char *argv[] = { cmd, NULL }; entry->cmd = cmd; process = &entry->process; child_process_init(process); - process->argv = argv; + argv_array_push(&process->args, cmd); process->use_shell = 1; process->in = -1; process->out = -1; |