diff options
author | Ed Maste <emaste@freebsd.org> | 2015-02-09 13:55:34 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-02-09 13:55:34 -0800 |
commit | 35181b3eaa305458f1a6ff04b97cf13e2ef10946 (patch) | |
tree | 6cbda8f25692de9b5cc0238b0c7c4ecc270000d9 /bfd/elf64-x86-64.c | |
parent | a2c2acaf15e9cc40bae8a6eebba78aadd3a31b8e (diff) | |
download | gdb-35181b3eaa305458f1a6ff04b97cf13e2ef10946.zip gdb-35181b3eaa305458f1a6ff04b97cf13e2ef10946.tar.gz gdb-35181b3eaa305458f1a6ff04b97cf13e2ef10946.tar.bz2 |
Avoid incrementing uninitialized variable
* elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing
uninitialized and unused variable.
* elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r-- | bfd/elf64-x86-64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 5fd727b..fd9c726 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -5569,7 +5569,7 @@ bad_return: if (plt_sym_val == NULL) goto bad_return; - for (i = 0; i < count; i++, p++) + for (i = 0; i < count; i++) plt_sym_val[i] = -1; plt_offset = bed->plt_entry_size; |