diff options
author | Nick Clifton <nickc@redhat.com> | 2002-06-10 10:18:33 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-06-10 10:18:33 +0000 |
commit | ebe3e2d199ce2c10fd27188855194170edd098cf (patch) | |
tree | 54f8ee1ba92816afae2d62538d29add6b7b74bbe /bfd/merge.c | |
parent | b09b19f78632576b344720f8c7238b584f74d0a0 (diff) | |
download | gdb-ebe3e2d199ce2c10fd27188855194170edd098cf.zip gdb-ebe3e2d199ce2c10fd27188855194170edd098cf.tar.gz gdb-ebe3e2d199ce2c10fd27188855194170edd098cf.tar.bz2 |
Use htab_create_alloc with calloc, not htab_alloc.
Diffstat (limited to 'bfd/merge.c')
-rw-r--r-- | bfd/merge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/merge.c b/bfd/merge.c index 9af93b0..866b69c 100644 --- a/bfd/merge.c +++ b/bfd/merge.c @@ -652,8 +652,10 @@ merge_strings (sinfo) qsort (array, (size_t) sinfo->htab->size, sizeof (struct sec_merge_hash_entry *), cmplengthentry); - last4tab = htab_create ((size_t) sinfo->htab->size * 4, NULL, last4_eq, NULL); - lasttab = htab_create ((size_t) sinfo->htab->size * 4, NULL, last_eq, NULL); + last4tab = htab_create_alloc ((size_t) sinfo->htab->size * 4, + NULL, last4_eq, NULL, calloc, free); + lasttab = htab_create_alloc ((size_t) sinfo->htab->size * 4, + NULL, last_eq, NULL, calloc, free); if (lasttab == NULL || last4tab == NULL) goto alloc_failure; |