summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-01 18:05:57 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-01 18:05:57 (GMT)
commitff50bb9f77199a14735a6a4778f667ecf153c7af (patch)
tree443e8627d2e0ae0c5f9cdafb03e5c92c358825d9
parent98dc57c0aed5507648defe98665d0954a585fbe5 (diff)
downloadCMake-ff50bb9f77199a14735a6a4778f667ecf153c7af.zip
CMake-ff50bb9f77199a14735a6a4778f667ecf153c7af.tar.gz
CMake-ff50bb9f77199a14735a6a4778f667ecf153c7af.tar.bz2
BUG: Even more VS8 issues
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index abe3ed6..3da646e 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1322,6 +1322,10 @@ std::string cmSystemTools::MakeXMLSafe(const char* str)
}
}
}
+ if ( result.size() == 0 )
+ {
+ return "";
+ }
return std::string(&*result.begin(), result.size());
}