summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-18 09:28:41 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-18 09:28:41 +0000
commit121eeb649069ee2d87fbf98ce2c10c7e2e0f0e32 (patch)
treed6d8e1cd81b0c4591cca86d0d73266254c30cc61 /bfd/mach-o.c
parentd0a3573d88f15c2f683c1cd005f47cb44b7f0e77 (diff)
downloadgdb-121eeb649069ee2d87fbf98ce2c10c7e2e0f0e32.tar.gz
2011-08-18 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_read_segment): Initialize list.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 6b2d3d40e63..efc58f59a65 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -2593,6 +2593,8 @@ bfd_mach_o_read_segment (bfd *abfd,
seg->nsects = bfd_h_get_32 (abfd, raw.nsects);
seg->flags = bfd_h_get_32 (abfd, raw.flags);
}
+ seg->sect_head = NULL;
+ seg->sect_tail = NULL;
for (i = 0; i < seg->nsects; i++)
{