use XNEW and related macros more
[deliverable/binutils-gdb.git] / gas / write.c
index c965e6878562815dc2eddf0b2a789301b5898e94..0dfca0c01c3b88d4b1201fd1be3b9bf0b4985a92 100644 (file)
@@ -1234,7 +1234,7 @@ write_relocs (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED)
        rp = &r->next;
     }
 
-  relocs = (arelent **) xcalloc (n, sizeof (arelent *));
+  relocs = XCNEWVEC (arelent *, n);
 
   n = 0;
   r = my_reloc_list;
This page took 0.025672 seconds and 4 git commands to generate.