From cda4253a0a4ede843b086e3010dff1e5e84c9587 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 1 Jul 2020 03:53:01 -0400 Subject: [PATCH] ncneofetch: sem_post() on error path --- src/fetch/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fetch/main.c b/src/fetch/main.c index 27416973e..0b7c5ffd2 100644 --- a/src/fetch/main.c +++ b/src/fetch/main.c @@ -369,6 +369,7 @@ display_thread(void* vmarshal){ if(m->dinfo->logofile){ if(ncdirect_render_image(m->nc, m->dinfo->logofile, NCBLIT_2x2, NCSCALE_SCALE) != NCERR_SUCCESS){ + sem_post(&m->sem); return NULL; } }