BUG: #3563. Segmentation fault with non initialized input or NULL pointers.
This commit is contained in:
parent
8a79d25927
commit
df3d4cb3c4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue