]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/coff-mips.c
Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
[thirdparty/binutils-gdb.git] / bfd / coff-mips.c
index 1e4ead4c3fd2d55768977e0a90ea25cddd23182a..edccd5cbbee78105d980d2b83703e918bf278aa4 100644 (file)
@@ -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;
        }