mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
demo: summary_table() failure is not immediate fail #2099
This commit is contained in:
parent
2feab02759
commit
adbc26dd9b
@ -572,9 +572,7 @@ int main(int argc, char** argv){
|
||||
ncmenu_destroy(menu);
|
||||
stop_input();
|
||||
notcurses_render(nc); // rid ourselves of any remaining demo output
|
||||
if(summary_table(nc, spec, canimage, canvideo)){
|
||||
goto err;
|
||||
}
|
||||
int r = summary_table(nc, spec, canimage, canvideo);
|
||||
notcurses_render(nc); // render our summary table
|
||||
free(results);
|
||||
if(notcurses_stop(nc)){
|
||||
@ -583,7 +581,7 @@ int main(int argc, char** argv){
|
||||
if(json && summary_json(json, spec, dimy, dimx)){
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
return r ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
|
||||
err:
|
||||
stop_input();
|
||||
|
Loading…
Reference in New Issue
Block a user