diff options
Diffstat (limited to 'run-command.c')
-rw-r--r-- | run-command.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/run-command.c b/run-command.c index a29a34fb1d..47ab21bcc3 100644 --- a/run-command.c +++ b/run-command.c @@ -8,6 +8,12 @@ # define SHELL_PATH "/bin/sh" #endif +void child_process_init(struct child_process *child) +{ + memset(child, 0, sizeof(*child)); + argv_array_init(&child->args); +} + struct child_to_clean { pid_t pid; struct child_to_clean *next; |