From 9bab7074b06e5c0661db3ec95c584ff221fc61ec Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 7 Jun 2002 15:04:49 +0000 Subject: Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc --- bfd/sparclinux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bfd/sparclinux.c') diff --git a/bfd/sparclinux.c b/bfd/sparclinux.c index 7f1d270..e55a4ff 100644 --- a/bfd/sparclinux.c +++ b/bfd/sparclinux.c @@ -599,10 +599,9 @@ bfd_sparclinux_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; -- cgit v1.1