aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-08-08 02:27:07 +0000
committerRichard Stallman <rms@gnu.org>1993-08-08 02:27:07 +0000
commitfe23d5ada2a7090c161ca48c79e9e4dcb51db267 (patch)
tree4edc5317e80fd2db24bfdf2e8bb1d3b5cb8e2ec5 /gcc
parent92b376919d38a7df4ccfa37dc318c2d5ca03cf8a (diff)
downloadgcc-fe23d5ada2a7090c161ca48c79e9e4dcb51db267.zip
gcc-fe23d5ada2a7090c161ca48c79e9e4dcb51db267.tar.gz
gcc-fe23d5ada2a7090c161ca48c79e9e4dcb51db267.tar.bz2
(process_init_element): Don't call clear_momentary if value is 0.
From-SVN: r5104
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 3fff379..64d51e1 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -6253,7 +6253,7 @@ process_init_element (value)
/* If the (lexically) previous elments are not now saved,
we can discard the storage for them. */
- if (constructor_incremental && constructor_pending_elts == 0)
+ if (constructor_incremental && constructor_pending_elts == 0 && value != 0)
clear_momentary ();
}