summaryrefslogtreecommitdiffstats
path: root/askconsole.c
diff options
context:
space:
mode:
Diffstat (limited to 'askconsole.c')
-rw-r--r--askconsole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/askconsole.c b/askconsole.c
index eba4959..fe37141 100644
--- a/askconsole.c
+++ b/askconsole.c
@@ -57,7 +57,7 @@ static void child_exit(struct uloop_process *proc, int ret)
}
void unitd_askconsole(void) {
- struct uloop_process *proc = malloc(sizeof(*proc));
+ struct uloop_process *proc = calloc(1, sizeof(*proc));
proc->cb = child_exit;
askconsole(proc);
}