[cmake-commits] hoffman committed SystemTools.cxx 1.181 1.182

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Oct 3 13:36:01 EDT 2006


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv7477

Modified Files:
	SystemTools.cxx 
Log Message:
ENH: check for empty path


Index: SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -d -r1.181 -r1.182
--- SystemTools.cxx	26 Aug 2006 20:14:26 -0000	1.181
+++ SystemTools.cxx	3 Oct 2006 17:35:59 -0000	1.182
@@ -337,6 +337,10 @@
 
 bool SystemTools::MakeDirectory(const char* path)
 {
+  if(!path)
+    {
+    return false;
+    }
   if(SystemTools::FileExists(path))
     {
     return true;



More information about the Cmake-commits mailing list