summaryrefslogtreecommitdiff
path: root/bfd/i386lynx.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/i386lynx.c
parentefbc9266f21923c9d331e31cbbd65f3aa57a9225 (diff)
downloadbinutils-redhat-b594f032440b94def6c5b2e5b7d3c47418922797.tar.gz
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/i386lynx.c')
-rw-r--r--bfd/i386lynx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/i386lynx.c b/bfd/i386lynx.c
index f74854334b..fc58767a97 100644
--- a/bfd/i386lynx.c
+++ b/bfd/i386lynx.c
@@ -1,5 +1,5 @@
/* BFD back-end for i386 a.out binaries under LynxOS.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 2001
+ Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 2001, 2002
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -429,10 +429,9 @@ doit:
count = reloc_size / each_size;
- reloc_cache = (arelent *) bfd_malloc (count * sizeof (arelent));
+ reloc_cache = (arelent *) bfd_zmalloc (count * sizeof (arelent));
if (!reloc_cache && count != 0)
return false;
- memset (reloc_cache, 0, (size_t) count * sizeof (arelent));
relocs = (PTR) bfd_alloc (abfd, reloc_size);
if (!relocs && reloc_size != 0)