summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-28 20:56:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-28 20:56:46 (GMT)
commit5b638bb1362aad1a38eef1fb318b7a7e5b775d7b (patch)
treecb9a03e7750740284d90463b1c0c2681a18255e2 /Source/cmCTest.cxx
parent6783765c907932449bfe450918735d2405835427 (diff)
downloadCMake-5b638bb1362aad1a38eef1fb318b7a7e5b775d7b.zip
CMake-5b638bb1362aad1a38eef1fb318b7a7e5b775d7b.tar.gz
CMake-5b638bb1362aad1a38eef1fb318b7a7e5b775d7b.tar.bz2
BUG: Add additional check
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx4
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());
}