Merge branch 'tg/memfixes'

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
This commit is contained in:
Junio C Hamano
2017-10-07 16:27:54 +09:00
3 changed files with 6 additions and 8 deletions

View File

@ -77,13 +77,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;