mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Prevent null pointer dereference
This commit is contained in:
parent
a1971c5657
commit
5d59871c05
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ static bool content_file_init(struct string_list *temporary_content)
|
|||
const struct retro_subsystem_info *special = NULL;
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (!string_is_empty(global->subsystem))
|
||||
if (global && !string_is_empty(global->subsystem))
|
||||
{
|
||||
special = init_content_file_subsystem(&ret);
|
||||
if (!ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue