From adbc26dd9b553dfcecdc4701fbd1a536c7928fce Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 26 Aug 2021 02:49:29 -0400 Subject: [PATCH] demo: summary_table() failure is not immediate fail #2099 --- src/demo/demo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/demo/demo.c b/src/demo/demo.c index 0efdaf960..c1953a05f 100644 --- a/src/demo/demo.c +++ b/src/demo/demo.c @@ -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();