From 2a65a88eeaad653d15a6ca5d292dcfd694f09829 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 10 Jan 2012 11:59:28 +0000 Subject: [PATCH] 2012-01-10 Tristan Gingold * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false warning. --- bfd/ChangeLog | 5 +++++ bfd/mach-o.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5b623188991..d00fd0663d9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-01-10 Tristan Gingold + + * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false + warning. + 2012-01-10 Tristan Gingold * bfdio.c (bfd_tell): Handle nested archives. diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 07ca65a1f5d..1234899233c 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; -- 2.30.2