aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/process.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 21:08:29 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-08-28 21:08:29 +0200
commit070144ea27766fc006c48674bc21dd0269b3c015 (patch)
tree871b09b260b78a4f6bb8b0e551492d5a2511e4de /src/process.c
parentserver: notify all threads about shutting down (diff)
downloadcimple-070144ea27766fc006c48674bc21dd0269b3c015.tar.gz
cimple-070144ea27766fc006c48674bc21dd0269b3c015.zip
worker: fix a crash
Found when running in Docker.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c7
1 files changed, 7 insertions, 0 deletions
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);