(expr_debug_print_postfix) Don't pass null pointer to printf for %.*s.
[pspp-builds.git] / src / expressions / evaluate.c
index 1607681604357b075e92ff2397ed99ca24c95f26..cfde2c1feb504f7d77042129705eaec295d61f7b 100644 (file)
@@ -289,7 +289,8 @@ expr_debug_print_postfix (const struct expression *e)
           break;
         case OP_string:
           fprintf (stderr, "s<%.*s>",
-                   (int) op->string.length, op->string.string);
+                   (int) op->string.length,
+                   op->string.string != NULL : op->string.string : "");
           break;
         case OP_format:
           fprintf (stderr, "f<%s%d.%d>",