From 070144ea27766fc006c48674bc21dd0269b3c015 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 28 Aug 2022 21:08:29 +0200 Subject: worker: fix a crash Found when running in Docker. --- src/process.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/process.c') diff --git a/src/process.c b/src/process.c index fa15641..1a4b032 100644 --- a/src/process.c +++ b/src/process.c @@ -114,6 +114,13 @@ close_pipe: return ret; } +void proc_output_init(struct proc_output *output) +{ + output->ec = 0; + output->output = NULL; + output->output_len = 0; +} + void proc_output_free(const struct proc_output *output) { free(output->output); -- cgit v1.2.3