aboutsummaryrefslogtreecommitdiff
path: root/gas/gasp.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-06-02 16:37:55 +0000
committerKen Raeburn <raeburn@cygnus>1994-06-02 16:37:55 +0000
commit7577d7b645ca1793ac0cda57037b7180c3112af4 (patch)
tree5f5d3d00601e507cc3b6a98f3cb375b2bbdbd8fa /gas/gasp.c
parent82489ea062091d79ce205dd59150f15b06d453eb (diff)
downloadgdb-7577d7b645ca1793ac0cda57037b7180c3112af4.zip
gdb-7577d7b645ca1793ac0cda57037b7180c3112af4.tar.gz
gdb-7577d7b645ca1793ac0cda57037b7180c3112af4.tar.bz2
(hash_new_table): Clear newly allocated table.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r--gas/gasp.c3
1 files changed, 3 insertions, 0 deletions
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. */