mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Add early return in case settings is NULL
This commit is contained in:
parent
039e2acc49
commit
e920e5f1b9
@ -131,7 +131,7 @@ void *get_chosen_screen(void)
|
|||||||
#else
|
#else
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
NSArray *screens = [RAScreen screens];
|
NSArray *screens = [RAScreen screens];
|
||||||
if (!screens)
|
if (!screens || !settings)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (settings->video.monitor_index >= screens.count)
|
if (settings->video.monitor_index >= screens.count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user