aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-18 09:28:42 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-18 09:28:42 +0000
commit9d4b600942e0a979b214c13bd560c5e88607b7e5 (patch)
tree33ca9aaad8b5ab51c75c7bbcdb337875645f2e9c /bfd/mach-o.c
parent0a35427e679e271627ead9d6f14504d04e9ee71c (diff)
downloadgdb-9d4b600942e0a979b214c13bd560c5e88607b7e5.zip
gdb-9d4b600942e0a979b214c13bd560c5e88607b7e5.tar.gz
gdb-9d4b600942e0a979b214c13bd560c5e88607b7e5.tar.bz2
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 6b2d3d4..efc58f5 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++)
{