1
0
Эх сурвалжийг харах

ENH: check for empty path

Bill Hoffman 19 жил өмнө
parent
commit
5b98b7af78

+ 4 - 0
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;