(hash_new_table): Clear newly allocated table.

This commit is contained in:
Ken Raeburn 1994-06-02 16:37:55 +00:00
parent 82489ea062
commit 7577d7b645

View File

@ -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. */