diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-06-07 15:04:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-06-07 15:04:49 +0000 |
commit | b594f032440b94def6c5b2e5b7d3c47418922797 (patch) | |
tree | 9c605b907814963114bd801ab40dd99474abe3e2 /bfd/elf64-alpha.c | |
parent | efbc9266f21923c9d331e31cbbd65f3aa57a9225 (diff) | |
download | binutils-redhat-b594f032440b94def6c5b2e5b7d3c47418922797.tar.gz |
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r-- | bfd/elf64-alpha.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 67ada729bb..a491ecad8c 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -2974,11 +2974,10 @@ get_got_entry (abfd, h, r_type, r_symndx, r_addend) size *= sizeof (struct alpha_elf_got_entry *); local_got_entries - = (struct alpha_elf_got_entry **) bfd_alloc (abfd, size); + = (struct alpha_elf_got_entry **) bfd_zalloc (abfd, size); if (!local_got_entries) return NULL; - memset (local_got_entries, 0, (size_t) size); alpha_elf_tdata (abfd)->local_got_entries = local_got_entries; } |