aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-02-02 11:55:43 +0000
committerTristan Gingold <gingold@adacore.com>2012-02-02 11:55:43 +0000
commitfacf03f2c394065666184d7d842e1488eaba355d (patch)
treeca5ac745d0d175d898c1da4b32558f3c705d3997 /bfd
parentcd99171ce11492f3cbbbbdae988601d0124bd4ef (diff)
downloadgdb-facf03f2c394065666184d7d842e1488eaba355d.zip
gdb-facf03f2c394065666184d7d842e1488eaba355d.tar.gz
gdb-facf03f2c394065666184d7d842e1488eaba355d.tar.bz2
bfd/
2012-02-02 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_header): Silent uninitialized variable warning. gas/ 2012-02-02 Tristan Gingold <gingold@adacore.com> * config/obj-macho.c (obj_mach_o_zerofill): Silent uninitialized variable warning.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/mach-o.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ad85fca..5efae57 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2012-02-02 Tristan Gingold <gingold@adacore.com>
+ * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
+ variable warning.
+
+2012-02-02 Tristan Gingold <gingold@adacore.com>
+
* archive.c (bfd_slurp_armap): Fix thinko in cast.
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index a13ac4e..5386b1a 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -2522,6 +2522,8 @@ bfd_mach_o_read_header (bfd *abfd, bfd_mach_o_header *header)
if (mach_o_wide_p (header))
header->reserved = (*get32) (raw.reserved);
+ else
+ header->reserved = 0;
return TRUE;
}