aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker.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/worker.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 '')
-rw-r--r--src/worker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index baba9b0..fef6b78 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -87,6 +87,7 @@ static int msg_ci_run_handler(struct worker *worker, const struct msg *request)
struct proc_output result;
int ret = 0;
+ proc_output_init(&result);
ret = msg_ci_run_do(request->argv[1], request->argv[2], &result);
proc_output_free(&result);