From cc56ca7c4280b30d5d10b9e996695eec15da1169 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 31 Jan 2015 05:00:35 +0100 Subject: [PATCH] menu_list_push - early return if label is NULL --- menu/menu_list.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/menu/menu_list.c b/menu/menu_list.c index 4207b13558..13aae6607e 100644 --- a/menu/menu_list.c +++ b/menu/menu_list.c @@ -342,6 +342,8 @@ void menu_list_push(file_list_t *list, { if (!list) return; + if (!label) + return; file_list_push(list, path, label, type, directory_ptr);