diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx index 8ceff8e20..cbc2aa710 100644 --- a/Source/CTest/cmCTestGenericHandler.cxx +++ b/Source/CTest/cmCTestGenericHandler.cxx @@ -109,7 +109,7 @@ bool cmCTestGenericHandler::StartLogFile(const char* name, cmGeneratedFileStream { ostr << "_" << m_SubmitIndex; } - if ( m_CTest->GetCurrentTag().c_str() ) + if ( *m_CTest->GetCurrentTag().c_str() ) { ostr << "_" << m_CTest->GetCurrentTag(); }