Commits

Anonymous committed 53f4624

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

Comments (0)

Files changed (1)

GCC_XML/KWSys/Directory.cxx

 bool Directory::Load(const char* name)
 {
   this->Clear();
+   
+  if (!name)
+    {
+    return 0;
+    }
   DIR* dir = opendir(name);
 
   if (!dir)