From 9d4b600942e0a979b214c13bd560c5e88607b7e5 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 18 Aug 2011 09:28:42 +0000 Subject: [PATCH] 2011-08-18 Tristan Gingold * mach-o.c (bfd_mach_o_read_segment): Initialize list. --- bfd/ChangeLog | 4 ++++ bfd/mach-o.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 54ac6f59828..f883765bc6f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2011-08-18 Tristan Gingold + + * mach-o.c (bfd_mach_o_read_segment): Initialize list. + 2011-08-17 Tristan Gingold * mach-o.c (bfd_mach_o_write_section_32): Fix typo. 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++) { -- 2.30.2