X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdots_xcurses.c;h=d8fe80319307d3c1525a8e6ca45035aa8b7d9299;hb=9b4c4abadc0a29999c5ddad5aa8d769fee28d687;hp=a2aa8b92661b6a82efd2267c4267fda39f9bd4a1;hpb=460005b642d978c6d4b48810803514bd36a6245b;p=ncurses.git diff --git a/test/dots_xcurses.c b/test/dots_xcurses.c index a2aa8b92..d8fe8031 100644 --- a/test/dots_xcurses.c +++ b/test/dots_xcurses.c @@ -30,7 +30,7 @@ /* * Author: Thomas E. Dickey * - * $Id: dots_xcurses.c,v 1.22 2020/05/10 00:32:33 tom Exp $ + * $Id: dots_xcurses.c,v 1.23 2020/05/29 23:04:02 tom Exp $ * * A simple demo of the wide-curses interface used for comparison with termcap. */ @@ -244,7 +244,8 @@ main(int argc, char *argv[]) set_colors(fg = z, bg); } else { set_colors(fg, bg = z); - napms(s_option); + if (s_option) + napms(s_option); } } else { if (ranf() <= 0.01) { @@ -253,7 +254,8 @@ main(int argc, char *argv[]) } else { attr_off(WA_REVERSE, NULL); } - napms(s_option); + if (s_option) + napms(s_option); } } wch[0] = (wchar_t) p;