diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-02-02 11:55:43 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-02-02 11:55:43 +0000 |
commit | facf03f2c394065666184d7d842e1488eaba355d (patch) | |
tree | ca5ac745d0d175d898c1da4b32558f3c705d3997 /bfd/mach-o.c | |
parent | cd99171ce11492f3cbbbbdae988601d0124bd4ef (diff) | |
download | gdb-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/mach-o.c')
-rw-r--r-- | bfd/mach-o.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |