mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-26 17:54:46 +01:00
Prevent closedir from being called on a NULL pointer.
This commit is contained in:
parent
8f77348251
commit
e8af81df71
@ -440,6 +440,7 @@ void CollectionInfoBuilder::ImportRomDirectory(std::string path, CollectionInfo
|
||||
if (dp == NULL)
|
||||
{
|
||||
Logger::write(Logger::ZONE_INFO, "CollectionInfoBuilder", "Could not read directory \"" + path + "\". Ignore if this is a menu.");
|
||||
return;
|
||||
}
|
||||
|
||||
while(dp != NULL && (dirp = readdir(dp)) != NULL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user