mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
notcurses_keyplot: error out on null ncplot
This commit is contained in:
parent
77dd998b05
commit
0a8e5ef70d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user