notcurses_keyplot: error out on null ncplot

This commit is contained in:
nick black 2020-04-06 02:59:35 -04:00
parent 77dd998b05
commit 0a8e5ef70d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -74,6 +74,9 @@ int main(void){
channels_set_fg_rgb(&popts.minchannel, random() % 256, random() % 256, random() % 256);
popts.gridtype = static_cast<ncgridgeom_e>(i);
plots[i] = ncplot_create(planes[i], &popts);
if(!plots[i]){
return EXIT_FAILURE;
}
}
char32_t r;
ncinput ni;