summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2013-12-05 11:15:09 +0100
committerTristan Gingold <gingold@adacore.com>2013-12-05 11:18:59 +0100
commitb30a5d18b1e54080f9b75ad3cf0ff626170327a6 (patch)
tree73fe85cbed0721ab50506d64345494984e2b73d6 /bfd/mach-o.c
parent39d7494aad3a550addfcfa6bf72fddaa1b7dbe8a (diff)
Clear allocated target data.
2013-12-05 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 32e48ac3cc..ffe7332a67 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;