From cf4b40636610a017d8bdd8fc43113e2b6d4b6ea9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 30 Jun 2020 07:04:55 +0200 Subject: [PATCH] Prevent NULL-pointer dereference --- menu/cbs/menu_cbs_ok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 6650278313..99700ef71f 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1924,7 +1924,7 @@ static int action_ok_file_load(const char *path, if (!string_is_empty(menu_label)) 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); if (!string_is_empty(menu_path))