From 39b751ce5a6d74289963d38d1cbe6f0e3b65ea11 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 19 Oct 1995 19:18:59 -0400 Subject: [PATCH] (check_format_info): Make test for null pointer more general. From-SVN: r10479 --- gcc/c-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-common.c b/gcc/c-common.c index 41362faf2c4..78b4d858acb 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -874,7 +874,7 @@ check_format_info (info, params) /* We can only check the format if it's a string constant. */ while (TREE_CODE (format_tree) == NOP_EXPR) format_tree = TREE_OPERAND (format_tree, 0); /* strip coercion */ - if (format_tree == null_pointer_node) + if (integer_zerop (format_tree)) { warning ("null format string"); return; -- 2.30.2