2011-08-18 Tristan Gingold <gingold@adacore.com>

* mach-o.c (bfd_mach_o_read_segment): Initialize list.
This commit is contained in:
Tristan Gingold 2011-08-18 09:28:42 +00:00
parent 0a35427e67
commit 9d4b600942
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-08-18 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_read_segment): Initialize list.
2011-08-17 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_write_section_32): Fix typo.

View File

@ -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++)
{