Replace bfd_alloc/bfd_malloc + memset with bfd_zalloc/bfd_zmalloc
[deliverable/binutils-gdb.git] / bfd / reloc16.c
index 1d69a7f25d35063ba9711fce8957f1e9efcc3e5c..1db8daf2aa4cfe3d12fd4aede12ae2d6e6d83585 100644 (file)
@@ -196,8 +196,7 @@ bfd_coff_reloc16_relax_section (abfd, input_section, link_info, again)
          The last element is used as an accumlator of shrinks.  */
       amt = reloc_count + 1;
       amt *= sizeof (unsigned);
-      shrinks = (unsigned *) bfd_malloc (amt);
-      memset (shrinks, 0, (size_t) amt);
+      shrinks = (unsigned *) bfd_zmalloc (amt);
 
       /* Loop until nothing changes in this section.  */
       do {
This page took 0.023859 seconds and 4 git commands to generate.