mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
core_info_list_get_all_extensions - check if global is non-NULL
instead
This commit is contained in:
parent
1d4b5691c9
commit
e7c842ae1f
@ -463,7 +463,7 @@ bool core_info_does_support_file(const core_info_t *core, const char *path)
|
|||||||
const char *core_info_list_get_all_extensions(void)
|
const char *core_info_list_get_all_extensions(void)
|
||||||
{
|
{
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
core_info_list_t *list = (global->core_info.list) ? global->core_info.list : NULL;
|
core_info_list_t *list = global ? global->core_info.list : NULL;
|
||||||
if (!list)
|
if (!list)
|
||||||
return NULL;
|
return NULL;
|
||||||
return list->all_ext;
|
return list->all_ext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user