From b30a5d18b1e54080f9b75ad3cf0ff626170327a6 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 5 Dec 2013 11:15:09 +0100 Subject: Clear allocated target data. 2013-12-05 Tristan Gingold * mach-o.c (bfd_mach_o_mkobject_init): Use bfd_zalloc. --- bfd/mach-o.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/mach-o.c') diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 32e48ac..ffe7332 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; -- cgit v1.1