diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-11-29 21:44:09 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-11-30 09:53:53 +0100 |
commit | 9f5b52ee3240dc61b0cae882dd880fd2ff28edf4 (patch) | |
tree | e17044b71fe40c96af925d79e1b6cf7159819cef | |
parent | ee4a95b431f57cee0fad223ffe0797bf4a8d5a34 (diff) | |
download | unitd-9f5b52ee3240dc61b0cae882dd880fd2ff28edf4.tar unitd-9f5b52ee3240dc61b0cae882dd880fd2ff28edf4.zip |
Fix initialization of askconsole uloop_process
-rw-r--r-- | askconsole.c | 2 |
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); } |