From e86b103cc63ddaa489f68a2bab37f6c0d13c1f83 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 7 Mar 2013 22:43:50 +0000 Subject: 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 --- cddl/contrib/opensolaris/tools/ctf/cvt/output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cddl') diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/output.c b/cddl/contrib/opensolaris/tools/ctf/cvt/output.c index a78789d6f92e..af797690a259 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/output.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/output.c @@ -379,8 +379,7 @@ sort_iidescs(Elf *elf, const char *file, tdata_t *td, int fuzzymatch, 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; -- cgit v1.2.3