aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-06-07 15:04:49 +0000
committerAlan Modra <amodra@gmail.com>2002-06-07 15:04:49 +0000
commit9bab7074b06e5c0661db3ec95c584ff221fc61ec (patch)
treee018b581bbf2801ccb49cdcef5de6066b63c2a21 /bfd/reloc16.c
parent * symbols.c: Replace CONST by const throughout. (diff)
downloadbinutils-gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.tar.gz
binutils-gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.tar.bz2
binutils-gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.zip
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 1d69a7f25d3..1db8daf2aa4 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 {