X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdots.c;h=94d90a13ff90d6474deebe303b6e37f114795491;hb=643ec2bf782cd02efafe3ccdeaea8920a404645e;hp=11fc1cfef4b708285e3ab4ff995bd40844e05117;hpb=460005b642d978c6d4b48810803514bd36a6245b;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);