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 | 10de1cbaf381d28993e64086215310eaf63c2ef9 (patch) | |
tree | c41bd39cc9e8c13aa0111bcc298b70781a8e164c /bfd/ieee.c | |
parent | 4fa8d0495f811c9d58fbdac2da08acc29b44d4fe (diff) | |
download | gdb-10de1cbaf381d28993e64086215310eaf63c2ef9.tar.gz |
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r-- | bfd/ieee.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c index 4e7f3a3ed7c..2433cc432d6 100644 --- a/bfd/ieee.c +++ b/bfd/ieee.c @@ -2398,10 +2398,9 @@ do_with_relocs (abfd, s) if ((PTR) stream == (PTR) NULL) { /* Outputting a section without data, fill it up */ - stream = (unsigned char *) (bfd_alloc (abfd, s->_raw_size)); + stream = (unsigned char *) bfd_zalloc (abfd, s->_raw_size); if (!stream) return false; - memset ((PTR) stream, 0, (size_t) s->_raw_size); } while (current_byte_index < s->_raw_size) { |