summaryrefslogtreecommitdiff
path: root/bfd/reloc16.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-06-07 15:04:49 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-06-07 15:04:49 +0000
commitb594f032440b94def6c5b2e5b7d3c47418922797 (patch)
tree9c605b907814963114bd801ab40dd99474abe3e2 /bfd/reloc16.c
parentefbc9266f21923c9d331e31cbbd65f3aa57a9225 (diff)
downloadbinutils-redhat-b594f032440b94def6c5b2e5b7d3c47418922797.tar.gz
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/reloc16.c')
-rw-r--r--bfd/reloc16.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/reloc16.c b/bfd/reloc16.c
index 1d69a7f25d..1db8daf2aa 100644
--- a/bfd/reloc16.c
+++ b/bfd/reloc16.c
@@ -196,8 +196,7 @@ bfd_coff_reloc16_relax_section (abfd, input_section, link_info, again)
The last element is used as an accumlator of shrinks. */
amt = reloc_count + 1;
amt *= sizeof (unsigned);
- shrinks = (unsigned *) bfd_malloc (amt);
- memset (shrinks, 0, (size_t) amt);
+ shrinks = (unsigned *) bfd_zmalloc (amt);
/* Loop until nothing changes in this section. */
do {