BUG: #3563. Segmentation fault with non initialized input or NULL pointers.

This commit is contained in:
Glen Lehmann 2006-08-01 15:16:19 -04:00
parent 8a79d25927
commit df3d4cb3c4
1 changed files with 5 additions and 0 deletions

View File

@ -199,6 +199,11 @@ namespace KWSYS_NAMESPACE
bool Directory::Load(const char* name)
{
this->Clear();
if (!name)
{
return 0;
}
DIR* dir = opendir(name);
if (!dir)