diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 17:35:59 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 17:35:59 (GMT) |
commit | 5b98b7af78e9a316b7346b2c0046ef3ca6e806ae (patch) | |
tree | a33fd8768b98a38c392435ad1e7e37926c97ce96 | |
parent | 943de01060e5a53cd8d3230846c387dd41b1fcf7 (diff) | |
download | CMake-5b98b7af78e9a316b7346b2c0046ef3ca6e806ae.zip CMake-5b98b7af78e9a316b7346b2c0046ef3ca6e806ae.tar.gz CMake-5b98b7af78e9a316b7346b2c0046ef3ca6e806ae.tar.bz2 |
ENH: check for empty path
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
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; |