diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-07 15:04:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-07 15:04:49 +0000 |
commit | 9bab7074b06e5c0661db3ec95c584ff221fc61ec (patch) | |
tree | e018b581bbf2801ccb49cdcef5de6066b63c2a21 /bfd/cofflink.c | |
parent | 9758f3fc77f7b9748293b7e265d362ceaddfdfb4 (diff) | |
download | fsf-binutils-gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.zip fsf-binutils-gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.tar.gz fsf-binutils-gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.tar.bz2 |
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index 1eac3c5..32200a8 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -342,12 +342,10 @@ coff_link_add_symbols (abfd, info) /* We keep a list of the linker hash table entries that correspond to particular symbols. */ amt = symcount * sizeof (struct coff_link_hash_entry *); - sym_hash = (struct coff_link_hash_entry **) bfd_alloc (abfd, amt); + sym_hash = (struct coff_link_hash_entry **) bfd_zalloc (abfd, amt); if (sym_hash == NULL && symcount != 0) goto error_return; obj_coff_sym_hashes (abfd) = sym_hash; - memset (sym_hash, 0, - (size_t) symcount * sizeof (struct coff_link_hash_entry *)); symesz = bfd_coff_symesz (abfd); BFD_ASSERT (symesz == bfd_coff_auxesz (abfd)); |