Date: Fri, 16 Dec 2016 00:23:59 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r310131 - head/contrib/binutils/bfd Message-ID: <201612160023.uBG0NxL0084449@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612160023.uBG0NxL0084449>