Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2013 22:43:50 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r247962 - head/cddl/contrib/opensolaris/tools/ctf/cvt
Message-ID:  <201303072243.r27Mhopv039449@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Mar  7 22:43:50 2013
New Revision: 247962
URL: http://svnweb.freebsd.org/changeset/base/247962

Log:
  Fix error in r247960: actually assign the basename to match.iim_file.
  
  Pointed out by:	avg
  Pointy hat to:	dim
  MFC after:	1 week
  X-MFC-With:	r247960

Modified:
  head/cddl/contrib/opensolaris/tools/ctf/cvt/output.c

Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/output.c
==============================================================================
--- head/cddl/contrib/opensolaris/tools/ctf/cvt/output.c	Thu Mar  7 22:32:41 2013	(r247961)
+++ head/cddl/contrib/opensolaris/tools/ctf/cvt/output.c	Thu Mar  7 22:43:50 2013	(r247962)
@@ -379,8 +379,7 @@ sort_iidescs(Elf *elf, const char *file,
 		switch (GELF_ST_TYPE(sym.st_info)) {
 		case STT_FILE:
 			bname = strrchr(match.iim_name, '/');
-			bname = bname == NULL ? match.iim_name : bname + 1;
-			match.iim_file = match.iim_name;
+			match.iim_file = bname == NULL ? match.iim_name : bname + 1;
 			continue;
 		case STT_OBJECT:
 			tolist = iiburst->iib_objts;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303072243.r27Mhopv039449>