aboutsummaryrefslogtreecommitdiff
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
commit2a65a88eeaad653d15a6ca5d292dcfd694f09829 (patch)
tree965d99406bfd3a50af722d45c893980ad4d684a8 /bfd/mach-o.c
parent1598539f980dd19c52884d1272463d6a1be8c305 (diff)
downloadgdb-2a65a88eeaad653d15a6ca5d292dcfd694f09829.zip
gdb-2a65a88eeaad653d15a6ca5d292dcfd694f09829.tar.gz
gdb-2a65a88eeaad653d15a6ca5d292dcfd694f09829.tar.bz2
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 07ca65a..1234899 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;