2012-01-10 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Tue, 10 Jan 2012 11:59:28 +0000 (11:59 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 10 Jan 2012 11:59:28 +0000 (11:59 +0000)
* mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
warning.

bfd/ChangeLog
bfd/mach-o.c

index 5b623188991c9672f5e6cd68c2829eacd8cbf1b9..d00fd0663d96f1f1209c89792654788bebf968a7 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-10  Tristan Gingold  <gingold@adacore.com>
+
+       * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
+       warning.
+
 2012-01-10  Tristan Gingold  <gingold@adacore.com>
 
        * bfdio.c (bfd_tell): Handle nested archives.
index 07ca65a1f5df367d7cfd4ffc9fe5e47b9d48d3e2..1234899233c770fd040ae2e7b7e360b40cf82769 100644 (file)
@@ -2154,7 +2154,7 @@ bfd_mach_o_build_commands (bfd *abfd)
 {
   bfd_mach_o_data_struct *mdata = bfd_mach_o_get_data (abfd);
   unsigned int wide = mach_o_wide_p (&mdata->header);
-  bfd_mach_o_segment_command *seg;
+  bfd_mach_o_segment_command *seg = NULL;
   bfd_mach_o_load_command *cmd;
   bfd_mach_o_load_command *symtab_cmd;
   unsigned symcind;