diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index cffcfead0..5ad523da8 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -179,6 +179,10 @@ std::string cmCTest::MakeXMLSafe(const std::string& str) } } } + if ( result.size() == 0 ) + { + return ""; + } return std::string(&*result.begin(), result.size()); }