svn commit: r310131 - head/contrib/binutils/bfd
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Dec 16 00:24:01 UTC 2016
Author: pfg
Date: Fri Dec 16 00:23:59 2016
New Revision: 310131
URL: https://svnweb.freebsd.org/changeset/base/310131
Log:
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)
Modified:
head/contrib/binutils/bfd/elf.c
Modified: head/contrib/binutils/bfd/elf.c
==============================================================================
--- head/contrib/binutils/bfd/elf.c Fri Dec 16 00:04:32 2016 (r310130)
+++ head/contrib/binutils/bfd/elf.c Fri Dec 16 00:23:59 2016 (r310131)
@@ -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);
More information about the svn-src-all
mailing list