From a6ce88c4713cd83b99e9e292c905e06d7e5b22d8 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 27 Aug 2020 00:14:34 -0400 Subject: [PATCH] notcurses_init(): correct error path --- src/lib/notcurses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 4bf45a651..3069c2c06 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -958,7 +958,7 @@ notcurses* notcurses_init(const notcurses_options* opts, FILE* outfp){ goto err; } if(make_nonblocking(ret->input.ttyinfp)){ - return -1; + goto err; } // Neither of these is supported on e.g. the "linux" virtual console. if(!(opts->flags & NCOPTION_NO_ALTERNATE_SCREEN)){