Skip to content
Snippets Groups Projects
Commit a2cd6e75 authored by Gaëtan Lehmann's avatar Gaëtan Lehmann
Browse files

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

parent afd4e4c5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment