From 7577d7b645ca1793ac0cda57037b7180c3112af4 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 2 Jun 1994 16:37:55 +0000 Subject: [PATCH] (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 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. */ -- 2.30.2