X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_sgr.c;fp=test%2Ftest_sgr.c;h=33564adb2a51805784181cf6e98a57669476aae0;hp=3d72e990034400d6840f7f3a12c1defaba3c27e8;hb=b661daf1160a873609d70843999cd46eff25d1f0;hpb=6830dca51a4e50d41e7bd114bdbaa857b42a46f4 diff --git a/test/test_sgr.c b/test/test_sgr.c index 3d72e990..33564adb 100644 --- a/test/test_sgr.c +++ b/test/test_sgr.c @@ -30,7 +30,7 @@ /* * Author: Thomas E. Dickey * - * $Id: test_sgr.c,v 1.16 2021/03/20 16:04:31 tom Exp $ + * $Id: test_sgr.c,v 1.17 2021/03/27 22:43:36 tom Exp $ * * A simple demo of the sgr/sgr0 terminal capabilities. */ @@ -116,7 +116,7 @@ next_dbitem(void) db_item++; } } - printf("** %s\n", result); + printf("** %s\n", result ? result : ""); return result; }