summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
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
commit98bf41dc6f8c73c65fbc86e8a311166183170f61 (patch)
tree4eb874362d9531380f33269e4d52100e26be9c7e /bfd/mach-o.c
parent7e61e964cc53d9015ade190223ad459eee8f76b0 (diff)
downloadbinutils-redhat-98bf41dc6f8c73c65fbc86e8a311166183170f61.tar.gz
2012-01-10 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false warning.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c2
1 files changed, 1 insertions, 1 deletions
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;