prevent a NULL dereference.

This commit is contained in:
aliaspider 2016-10-24 22:42:17 +01:00
parent b889f09db6
commit 77b4c8f420

View File

@ -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));