summaryrefslogtreecommitdiff
path: root/gcc/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/hashtable.c')
-rw-r--r--gcc/hashtable.c3
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,