summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-02-02 11:55:42 +0000
committerTristan Gingold <gingold@adacore.com>2012-02-02 11:55:42 +0000
commit04ab626d8cbd9c2ce0bdb24438fb5dd25970caac (patch)
tree612c11e39177941f16a21c0667df3ef47078a7ea /bfd/mach-o.c
parentbbf6b936ee161c4cd052e0bbc3bcbdfcef185bd1 (diff)
downloadgdb-04ab626d8cbd9c2ce0bdb24438fb5dd25970caac.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index a13ac4ea69d..5386b1ada14 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;
}