mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-14 15:50:34 +00:00
(hash_new_table): Clear newly allocated table.
This commit is contained in:
parent
82489ea062
commit
7577d7b645
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user