notcurses_init(): correct error path

This commit is contained in:
nick black 2020-08-27 00:14:34 -04:00
parent 201994ab0c
commit a6ce88c471
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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)){