diff options
Diffstat (limited to 'gcc/hashtable.c')
-rw-r--r-- | gcc/hashtable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/hashtable.c b/gcc/hashtable.c index ea7d2b07577..41551394f8a 100644 --- a/gcc/hashtable.c +++ b/gcc/hashtable.c @@ -58,8 +58,7 @@ ht_create (unsigned int order) unsigned int nslots = 1 << order; hash_table *table; - table = xmalloc (sizeof (hash_table)); - memset (table, 0, sizeof (hash_table)); + table = xcalloc (1, sizeof (hash_table)); /* Strings need no alignment. */ _obstack_begin (&table->stack, 0, 0, |