Clear allocated target data.
authorTristan Gingold <gingold@adacore.com>
Thu, 5 Dec 2013 10:15:09 +0000 (11:15 +0100)
committerTristan Gingold <gingold@adacore.com>
Thu, 5 Dec 2013 10:18:59 +0000 (11:18 +0100)
2013-12-05  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc.

bfd/ChangeLog
bfd/mach-o.c

index 3108f73583d1e0cde9c1116c945c6576138ca01d..c42307fa787ddc469e70e35d596462708209889d 100644 (file)
@@ -1,3 +1,7 @@
+2013-12-05  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc.
+
 2013-12-03  Nick Clifton  <nickc@redhat.com>
 
        * peXXigen.c (pe_print_resource_entries): New function: Displays
index 32e48ac3cc9ea11fc2ffab0d120e0284d8665fb3..ffe7332a674063310989412fdd5e08aabc7cfce8 100644 (file)
@@ -4148,7 +4148,7 @@ bfd_mach_o_mkobject_init (bfd *abfd)
 {
   bfd_mach_o_data_struct *mdata = NULL;
 
-  mdata = bfd_alloc (abfd, sizeof (bfd_mach_o_data_struct));
+  mdata = bfd_zalloc (abfd, sizeof (bfd_mach_o_data_struct));
   if (mdata == NULL)
     return FALSE;
   abfd->tdata.mach_o_data = mdata;
This page took 0.027965 seconds and 4 git commands to generate.