Skip to content

Commit

Permalink
notcurses_keyplot: error out on null ncplot
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Apr 6, 2020
1 parent 77dd998 commit 0a8e5ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/input/keyplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a8e5ef

Please sign in to comment.