From 9f5b52ee3240dc61b0cae882dd880fd2ff28edf4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 29 Nov 2015 21:44:09 +0100 Subject: Fix initialization of askconsole uloop_process --- askconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3