From: Ken Raeburn Date: Thu, 2 Jun 1994 16:37:55 +0000 (+0000) Subject: (hash_new_table): Clear newly allocated table. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7577d7b645ca1793ac0cda57037b7180c3112af4;p=binutils-gdb.git (hash_new_table): Clear newly allocated table. --- diff --git a/gas/gasp.c b/gas/gasp.c index 83ccc557e7b..59c6a7007d0 100644 --- a/gas/gasp.c +++ b/gas/gasp.c @@ -582,6 +582,9 @@ hash_new_table (size, ptr) { ptr->size = size; ptr->table = (hash_entry **) xmalloc (size * (sizeof (hash_entry *))); + /* Fill with null-pointer, not zero-bit-pattern. */ + for (i = 0; i < size; i++) + ptr->table[i] = 0; } /* calculate and return the hash value of the sb at key. */