summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-11-29 21:44:09 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-11-30 09:53:53 +0100
commit9f5b52ee3240dc61b0cae882dd880fd2ff28edf4 (patch)
treee17044b71fe40c96af925d79e1b6cf7159819cef
parentee4a95b431f57cee0fad223ffe0797bf4a8d5a34 (diff)
downloadunitd-9f5b52ee3240dc61b0cae882dd880fd2ff28edf4.tar
unitd-9f5b52ee3240dc61b0cae882dd880fd2ff28edf4.zip
Fix initialization of askconsole uloop_process
-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);
}