From: Tristan Gingold Date: Thu, 5 Dec 2013 10:15:09 +0000 (+0100) Subject: Clear allocated target data. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b30a5d18b1e54080f9b75ad3cf0ff626170327a6;p=binutils-gdb.git Clear allocated target data. 2013-12-05 Tristan Gingold * mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3108f73583d..c42307fa787 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2013-12-05 Tristan Gingold + + * mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc. + 2013-12-03 Nick Clifton * peXXigen.c (pe_print_resource_entries): New function: Displays diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 32e48ac3cc9..ffe7332a674 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -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;