From d27c148b7639ccd374b07892b35b6d2a5d080826 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sun, 27 Feb 1994 14:41:53 -0800 Subject: [PATCH] (process_init_element): Check for constructor_type set before dereferencing it in the string cst code. From-SVN: r6656 --- gcc/c-typeck.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index b23338583be..97fb2568840 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5872,6 +5872,7 @@ process_init_element (value) /* Handle superfluous braces around string cst as in char x[] = {"foo"}; */ if (string_flag + && constructor_type && TREE_CODE (constructor_type) == ARRAY_TYPE && TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE && integer_zerop (constructor_unfilled_index)) -- 2.30.2