aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/coff-mips.c')
-rw-r--r--bfd/coff-mips.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/coff-mips.c b/bfd/coff-mips.c
index 1e4ead4..edccd5c 100644
--- a/bfd/coff-mips.c
+++ b/bfd/coff-mips.c
@@ -2116,10 +2116,9 @@ mips_relax_section (abfd, sec, info, again)
bfd_size_type size;
size = (bfd_size_type) sec->reloc_count * sizeof (long);
- offsets = (long *) bfd_alloc (abfd, size);
+ offsets = (long *) bfd_zalloc (abfd, size);
if (offsets == (long *) NULL)
goto error_return;
- memset (offsets, 0, (size_t) size);
section_tdata->offsets = offsets;
}