mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
push_main_menu_list - add early return if setting is NULL
This commit is contained in:
parent
ffc6b2f6c3
commit
b6f6871b1c
@ -144,6 +144,9 @@ static int push_main_menu_list(menu_handle_t *menu,
|
||||
rarch_setting_t *setting = (rarch_setting_t*)setting_data_find_setting(menu->list_mainmenu,
|
||||
label);
|
||||
|
||||
if (!setting)
|
||||
return -1;
|
||||
|
||||
file_list_clear(list);
|
||||
|
||||
for (; setting->type != ST_END_GROUP; setting++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user