summaryrefslogtreecommitdiffstats
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-01-10 11:59:28 +0000
committerTristan Gingold <gingold@adacore.com>2012-01-10 11:59:28 +0000
commit2a65a88eeaad653d15a6ca5d292dcfd694f09829 (patch)
tree965d99406bfd3a50af722d45c893980ad4d684a8 /bfd
parent1598539f980dd19c52884d1272463d6a1be8c305 (diff)
downloadppe42-binutils-2a65a88eeaad653d15a6ca5d292dcfd694f09829.tar.gz
ppe42-binutils-2a65a88eeaad653d15a6ca5d292dcfd694f09829.zip
2012-01-10 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false warning.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/mach-o.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5b62318899..d00fd0663d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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.
(bfd_seek): Ditto.
* cache.c (bfd_cache_lookup_worker): Ditto.
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 07ca65a1f5..1234899233 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -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;
OpenPOWER on IntegriCloud