diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-07 15:04:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-07 15:04:49 +0000 |
commit | 9bab7074b06e5c0661db3ec95c584ff221fc61ec (patch) | |
tree | e018b581bbf2801ccb49cdcef5de6066b63c2a21 /bfd/vms-gsd.c | |
parent | 9758f3fc77f7b9748293b7e265d362ceaddfdfb4 (diff) | |
download | gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.zip gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.tar.gz gdb-9bab7074b06e5c0661db3ec95c584ff221fc61ec.tar.bz2 |
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
Diffstat (limited to 'bfd/vms-gsd.c')
-rw-r--r-- | bfd/vms-gsd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/vms-gsd.c b/bfd/vms-gsd.c index d9dcd78..0024122 100644 --- a/bfd/vms-gsd.c +++ b/bfd/vms-gsd.c @@ -426,13 +426,12 @@ _bfd_vms_slurp_gsd (abfd, objtype) else { section->contents = ((unsigned char *) - bfd_malloc (section->_raw_size)); + bfd_zmalloc (section->_raw_size)); if (section->contents == NULL) { bfd_set_error (bfd_error_no_memory); return -1; } - memset (section->contents, 0, (size_t) section->_raw_size); } section->_cooked_size = section->_raw_size; #if VMS_DEBUG @@ -618,10 +617,9 @@ _bfd_vms_slurp_gsd (abfd, objtype) section->vma = (bfd_vma)base_addr; base_addr += section->_raw_size; section->contents = ((unsigned char *) - bfd_malloc (section->_raw_size)); + bfd_zmalloc (section->_raw_size)); if (section->contents == NULL) return -1; - memset (section->contents, 0, (size_t) section->_raw_size); section->_cooked_size = section->_raw_size; #if VMS_DEBUG vms_debug(4, "egsd psc %d (%s, flags %04x=%s) ", |