]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/sp_tinfo.c
ncurses 6.0 - patch 20170513
[ncurses.git] / test / sp_tinfo.c
index fdc6425714d25e6d3ebf9d35f6bd619c5f1bd2de..1c20588a4257d429ae2e8e3a4d4733784eab6fdd 100644 (file)
@@ -27,7 +27,7 @@
  ****************************************************************************/
 
 /*
- * $Id: sp_tinfo.c,v 1.18 2017/04/13 21:35:31 tom Exp $
+ * $Id: sp_tinfo.c,v 1.19 2017/05/13 23:19:04 tom Exp $
  *
  * TOTO: add option for non-sp-funcs interface
  */
@@ -74,7 +74,7 @@ initialize(const char *name, FILE *output)
     result->fp = output;
     result->name = name;
     result->outc = (fileno(output) == 1) ? my_outc : my_errc;
-    result->sp = opt_n ? 0 : new_prescr();
+    result->sp = opt_n ? NULL : new_prescr();
 
     if (opt_t) {
        char *temp = strdup(name);