Don't emit () if there is no file name, not if there is no Symbol.

This commit is contained in:
Steve Checkoway
2003-08-03 12:06:14 +00:00
parent 615e11ed42
commit 15c9ef15d3
@@ -61,7 +61,7 @@ void BacktraceNames::Demangle() { }
CString BacktraceNames::Format() const CString BacktraceNames::Format() const
{ {
CString ShortenedPath = File; CString ShortenedPath = File;
if( Symbol != "" ) if( ShortenedPath != "" )
{ {
/* We have some sort of symbol name, so abbreviate or elide the module name. */ /* We have some sort of symbol name, so abbreviate or elide the module name. */
if( ShortenedPath == g_argv[0] ) if( ShortenedPath == g_argv[0] )