libbfd: drop unnecessary variable increment.
Do not increment `s' before it is initialized. At the time of the increment, `s' is otherwise unused anyway. Obtained from: OpenBSD (CVS rev 1.11)
This commit is contained in:
parent
26eae5c681
commit
d90714d2c5
@ -8826,7 +8826,7 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
|
||||
count = relplt->size / hdr->sh_entsize;
|
||||
size = count * sizeof (asymbol);
|
||||
p = relplt->relocation;
|
||||
for (i = 0; i < count; i++, s++, p++)
|
||||
for (i = 0; i < count; i++, p++)
|
||||
size += strlen ((*p->sym_ptr_ptr)->name) + sizeof ("@plt");
|
||||
|
||||
s = *ret = bfd_malloc (size);
|
||||
|
Loading…
Reference in New Issue
Block a user