summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-03 17:35:59 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-03 17:35:59 (GMT)
commit5b98b7af78e9a316b7346b2c0046ef3ca6e806ae (patch)
treea33fd8768b98a38c392435ad1e7e37926c97ce96
parent943de01060e5a53cd8d3230846c387dd41b1fcf7 (diff)
downloadCMake-5b98b7af78e9a316b7346b2c0046ef3ca6e806ae.zip
CMake-5b98b7af78e9a316b7346b2c0046ef3ca6e806ae.tar.gz
CMake-5b98b7af78e9a316b7346b2c0046ef3ca6e806ae.tar.bz2
ENH: check for empty path
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 6ef85b9..e8e18bd 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -337,6 +337,10 @@ const char* SystemTools::GetExecutableExtension()
bool SystemTools::MakeDirectory(const char* path)
{
+ if(!path)
+ {
+ return false;
+ }
if(SystemTools::FileExists(path))
{
return true;