2011-08-18 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Thu, 18 Aug 2011 09:28:42 +0000 (09:28 +0000)
committerTristan Gingold <gingold@adacore.com>
Thu, 18 Aug 2011 09:28:42 +0000 (09:28 +0000)
* mach-o.c (bfd_mach_o_read_segment): Initialize list.

bfd/ChangeLog
bfd/mach-o.c

index 54ac6f59828bc9432de0309bb2b9d8ede1b70114..f883765bc6f478ea54490f69684d4a2d5919f9e6 100644 (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.
index 6b2d3d40e63da9d85d956ae38b5b22dbdeaa4f29..efc58f59a65eabed43e486f89c225c83141ff3a8 100644 (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++)
     {
This page took 0.03265 seconds and 4 git commands to generate.