X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_new_pair.c;h=4067c8817ad3532f43174415272233e90fdbb860;hp=a0beb85c40dbfc2cb7c7c3dff98a4a984fcdff40;hb=d66080c21038ad4feb2e41a0c4e517d5b4a03ab2;hpb=12b49d3c56a6130feb2d39fbe2d6c1bc0838f0fa diff --git a/test/demo_new_pair.c b/test/demo_new_pair.c index a0beb85c..4067c881 100644 --- a/test/demo_new_pair.c +++ b/test/demo_new_pair.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_new_pair.c,v 1.17 2017/09/28 23:17:56 tom Exp $ + * $Id: demo_new_pair.c,v 1.18 2017/10/11 22:16:14 tom Exp $ * * Demonstrate the alloc_pair() function. */ @@ -323,7 +323,9 @@ main(int argc, char *argv[]) break; wch[0] = use_wide ? 0xff03 : '#'; wch[1] = 0; - setcchar(&temp, wch, my_attrs, (short) my_pair, NULL); + setcchar(&temp, wch, my_attrs, + (short) my_pair, + (use_init ? NULL : (void *) &my_pair)); /* * At the end of a page, move the cursor to the home position. */