diff --git a/Source/CTest/cmCTestGenericHandler.cxx b/Source/CTest/cmCTestGenericHandler.cxx index cbc2aa710..a406d3eef 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().empty() ) { ostr << "_" << m_CTest->GetCurrentTag(); }