diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-06-02 16:37:55 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-06-02 16:37:55 +0000 |
commit | 7577d7b645ca1793ac0cda57037b7180c3112af4 (patch) | |
tree | 5f5d3d00601e507cc3b6a98f3cb375b2bbdbd8fa /gas | |
parent | 82489ea062091d79ce205dd59150f15b06d453eb (diff) | |
download | gdb-7577d7b645ca1793ac0cda57037b7180c3112af4.zip gdb-7577d7b645ca1793ac0cda57037b7180c3112af4.tar.gz gdb-7577d7b645ca1793ac0cda57037b7180c3112af4.tar.bz2 |
(hash_new_table): Clear newly allocated table.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/gasp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. */ |