ENH: check for empty path

This commit is contained in:
Bill Hoffman 2006-10-03 13:35:59 -04:00
parent 943de01060
commit 5b98b7af78
1 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,10 @@ const char* SystemTools::GetExecutableExtension()
bool SystemTools::MakeDirectory(const char* path) bool SystemTools::MakeDirectory(const char* path)
{ {
if(!path)
{
return false;
}
if(SystemTools::FileExists(path)) if(SystemTools::FileExists(path))
{ {
return true; return true;