From 5b638bb1362aad1a38eef1fb318b7a7e5b775d7b Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 28 Feb 2006 15:56:46 -0500 Subject: [PATCH] BUG: Add additional check --- Source/cmCTest.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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()); }