diff options
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index cffcfea..5ad523d 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()); } |