projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82489ea
)
(hash_new_table): Clear newly allocated table.
author
Ken Raeburn
<raeburn@cygnus>
Thu, 2 Jun 1994 16:37:55 +0000
(16:37 +0000)
committer
Ken Raeburn
<raeburn@cygnus>
Thu, 2 Jun 1994 16:37:55 +0000
(16:37 +0000)
gas/gasp.c
patch
|
blob
|
history
diff --git
a/gas/gasp.c
b/gas/gasp.c
index 83ccc557e7b2b1881ce1bdcea38000253b433d5a..59c6a7007d0f61fccd2d799ac4c21ccf20dac5bb 100644
(file)
--- 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. */