svn commit: r247962 - head/cddl/contrib/opensolaris/tools/ctf/cvt

Dimitry Andric dim at FreeBSD.org
Thu Mar 7 22:43:51 UTC 2013


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;


More information about the svn-src-all mailing list