* vms-lib.c (_bfd_vms_lib_get_module): Use bfd_zmalloc for
[deliverable/binutils-gdb.git] / bfd / vms-lib.c
index fa23b788e2509f6caa7303ccd34bba80fdfe436a..56b80ad58ce07dd1a6d8efe33d49ae3f1d131b19 100644 (file)
@@ -1,6 +1,6 @@
 /* BFD back-end for VMS archive files.
 
-   Copyright 2010, 2011 Free Software Foundation, Inc.
+   Copyright 2010, 2011, 2012 Free Software Foundation, Inc.
    Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -1337,7 +1337,7 @@ _bfd_vms_lib_get_module (bfd *abfd, unsigned int modidx)
       res = _bfd_create_empty_archive_element_shell (abfd);
       if (res == NULL)
         return NULL;
-      arelt = bfd_zalloc (res, sizeof (*arelt));
+      arelt = bfd_zmalloc (sizeof (*arelt));
       if (arelt == NULL)
         return NULL;
       res->arelt_data = arelt;
This page took 0.024989 seconds and 4 git commands to generate.