diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-28 20:56:46 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-28 20:56:46 (GMT) |
commit | 5b638bb1362aad1a38eef1fb318b7a7e5b775d7b (patch) | |
tree | cb9a03e7750740284d90463b1c0c2681a18255e2 /Source/cmCTest.cxx | |
parent | 6783765c907932449bfe450918735d2405835427 (diff) | |
download | CMake-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.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()); } |