mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
BUG: #3563. Segmentation fault with non initialized input or NULL pointers.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user