aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-04-30 12:13:09 +0000
committerNick Clifton <nickc@redhat.com>2013-04-30 12:13:09 +0000
commited54588daf47156f054f0e8c5ef894c3c99e6797 (patch)
tree2c6b4182deff1d8c80a670542968e5c29cb42ad7 /bfd/elflink.c
parentf1d02dd44db33ac39c13cf160ef53b80f69ca6d7 (diff)
downloadgdb-ed54588daf47156f054f0e8c5ef894c3c99e6797.zip
gdb-ed54588daf47156f054f0e8c5ef894c3c99e6797.tar.gz
gdb-ed54588daf47156f054f0e8c5ef894c3c99e6797.tar.bz2
PR binutils/15417
* elflink.c (elf_link_add_object_symbols): Initialise 'idx' to zero.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 363abed..7cfc379 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4665,7 +4665,7 @@ error_free_dyn:
struct elf_link_hash_entry *hlook;
asection *slook;
bfd_vma vlook;
- size_t i, j, idx;
+ size_t i, j, idx = 0;
hlook = weaks;
weaks = hlook->u.weakdef;