X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=test%2Fdots.c;fp=test%2Fdots.c;h=94d90a13ff90d6474deebe303b6e37f114795491;hb=790a85dbd4a81d5f5d8dd02a44d84f01512ef443;hp=11fc1cfef4b708285e3ab4ff995bd40844e05117;hpb=3e37c7d3fa122563a9d88168926f61286ef30cd3;p=ncurses.git diff --git a/test/dots.c b/test/dots.c index 11fc1cfe..94d90a13 100644 --- a/test/dots.c +++ b/test/dots.c @@ -30,7 +30,7 @@ /* * Author: Thomas E. Dickey 1999 * - * $Id: dots.c,v 1.39 2020/05/10 00:31:03 tom Exp $ + * $Id: dots.c,v 1.40 2020/05/29 23:04:02 tom Exp $ * * A simple demo of the terminfo interface. */ @@ -214,7 +214,8 @@ main(int argc, tputs(tparm2(set_a_foreground, z), 1, outc); } else { tputs(tparm2(set_a_background, z), 1, outc); - napms(s_option); + if (s_option) + napms(s_option); } } else if (VALID_STRING(exit_attribute_mode) && VALID_STRING(enter_reverse_mode)) { @@ -222,7 +223,8 @@ main(int argc, outs((ranf() > 0.6) ? enter_reverse_mode : exit_attribute_mode); - napms(s_option); + if (s_option) + napms(s_option); } } outc(p);