Merge pull request #10889 from Jamiras/scan_content_null

prevent NULL reference exception when scanning some directories
This commit is contained in:
Autechre 2020-06-22 06:46:32 +02:00 committed by GitHub
commit b736100443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1255,6 +1255,8 @@ static void task_database_handler(retro_task_t *task)
{
const char *name = database_info_get_current_element_name(
dbinfo);
if (name == NULL)
goto task_finished;
if (dbinfo->type == DATABASE_TYPE_ITERATE)
if (path_contains_compressed_file(name))