From cea2ac67668f2bdf6663570c800b7020a3fa36bb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 19 Sep 2016 02:12:25 +0200 Subject: [PATCH] (menu_list) Use string_is_equal --- menu/widgets/menu_list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/menu/widgets/menu_list.c b/menu/widgets/menu_list.c index 4b40506777..dc583aa324 100644 --- a/menu/widgets/menu_list.c +++ b/menu/widgets/menu_list.c @@ -15,6 +15,8 @@ #include +#include + #include "menu_list.h" #include "../menu_driver.h" @@ -133,7 +135,7 @@ size_t menu_list_get_stack_size(menu_list_t *list, size_t idx) static int menu_list_flush_stack_type(const char *needle, const char *label, unsigned type, unsigned final_type) { - return needle ? strcmp(needle, label) : (type != final_type); + return needle ? !string_is_equal(needle, label) : (type != final_type); } void menu_list_flush_stack(menu_list_t *list,