From: Ben Pfaff Date: Sun, 31 Jul 2005 06:11:34 +0000 (+0000) Subject: (expr_debug_print_postfix) Don't pass null pointer to printf for %.*s. X-Git-Tag: v0.4.0~10 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a53bbba50470f8752b8343e597fcc5a81cb1da3;p=pspp-builds.git (expr_debug_print_postfix) Don't pass null pointer to printf for %.*s. --- diff --git a/src/ChangeLog b/src/ChangeLog index cd4f47b9..5b4aac61 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 30 23:10:01 2005 Ben Pfaff + + * epxressions/evaluate.c: (expr_debug_print_postfix) Don't pass + null pointer to printf for %.*s. + Sat Jul 30 23:05:33 2005 Ben Pfaff * vars-atr.c: (var_is_valid_name) Fix three msg() bugs found by diff --git a/src/expressions/evaluate.c b/src/expressions/evaluate.c index 16076816..cfde2c1f 100644 --- a/src/expressions/evaluate.c +++ b/src/expressions/evaluate.c @@ -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>",