mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
prevent a NULL dereference.
This commit is contained in:
parent
b889f09db6
commit
77b4c8f420
@ -1937,7 +1937,7 @@ static int action_ok_file_load(const char *path,
|
||||
|
||||
setting = menu_setting_find(menu_label);
|
||||
|
||||
if (setting->type == ST_PATH)
|
||||
if (setting && setting->type == ST_PATH)
|
||||
return action_ok_set_path(path, label, type, idx, entry_idx);
|
||||
|
||||
strlcpy(menu_path_new, menu_path, sizeof(menu_path_new));
|
||||
|
Loading…
x
Reference in New Issue
Block a user