From 7577d7b645ca1793ac0cda57037b7180c3112af4 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 2 Jun 1994 16:37:55 +0000 Subject: (hash_new_table): Clear newly allocated table. --- gas/gasp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gas/gasp.c b/gas/gasp.c index 83ccc55..59c6a70 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. */ -- cgit v1.1