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/i386linux.c | |
parent | 4fa8d0495f811c9d58fbdac2da08acc29b44d4fe (diff) | |
download | gdb-10de1cbaf381d28993e64086215310eaf63c2ef9.tar.gz |
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/i386linux.c')
-rw-r--r-- | bfd/i386linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/i386linux.c b/bfd/i386linux.c index 755b456cfcd..c144822ac2a 100644 --- a/bfd/i386linux.c +++ b/bfd/i386linux.c @@ -597,10 +597,9 @@ bfd_i386linux_size_dynamic_sections (output_bfd, info) { s->_raw_size = linux_hash_table (info)->fixup_count + 1; s->_raw_size *= 8; - s->contents = (bfd_byte *) bfd_alloc (output_bfd, s->_raw_size); + s->contents = (bfd_byte *) bfd_zalloc (output_bfd, s->_raw_size); if (s->contents == NULL) return false; - memset (s->contents, 0, (size_t) s->_raw_size); } return true; |