diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2002-07-29 10:37:25 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@gcc.gnu.org> | 2002-07-29 10:37:25 +0000 |
commit | c03d566f08dbd5c99192b49eea263a742511b61c (patch) | |
tree | cc3330f844bd62c1fcc890f740bf90329523b172 /gcc/cp/spew.c | |
parent | f63c45ec8ec382ccd7d056cf60edf410414491ef (diff) | |
download | gcc-c03d566f08dbd5c99192b49eea263a742511b61c.zip gcc-c03d566f08dbd5c99192b49eea263a742511b61c.tar.gz gcc-c03d566f08dbd5c99192b49eea263a742511b61c.tar.bz2 |
spew.c (space_for_token): Allocate zeroed memory for a new token chunk.
* spew.c (space_for_token): Allocate zeroed memory for a new token
chunk.
From-SVN: r55834
Diffstat (limited to 'gcc/cp/spew.c')
-rw-r--r-- | gcc/cp/spew.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index 2c34192..27bc572 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -1023,7 +1023,7 @@ space_for_token (t) if (t->last_pos != TOKEN_CHUNK_SIZE) return t->last_chunk->toks + (t->last_pos++); - t->last_chunk->next = ggc_alloc (sizeof (*t->last_chunk->next)); + t->last_chunk->next = ggc_alloc_cleared (sizeof (*t->last_chunk->next)); t->last_chunk = t->last_chunk->next; t->last_chunk->next = NULL; |