summaryrefslogtreecommitdiff
path: root/process-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'process-posix.c')
-rw-r--r--process-posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/process-posix.c b/process-posix.c
index da0448d..9be7e10 100644
--- a/process-posix.c
+++ b/process-posix.c
@@ -10,6 +10,8 @@ struct Process {
};
bool process_exec(Process *proc, char const *program, char **argv) {
+ memset(proc, 0, sizeof *proc);
+
bool success = false;
int pipefd[2];