From d36d3e2c89323bd0f6de05e03f545a6365028c8d Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 21 Nov 2017 04:38:38 +0100 Subject: [PATCH] Update menu_dialog.c --- menu/widgets/menu_dialog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/menu/widgets/menu_dialog.c b/menu/widgets/menu_dialog.c index 601418347b..4157e31502 100644 --- a/menu/widgets/menu_dialog.c +++ b/menu/widgets/menu_dialog.c @@ -255,6 +255,7 @@ void menu_dialog_push_pending(bool push, enum menu_dialog_type type) void menu_dialog_push(void) { menu_displaylist_info_t info; + const char *label; if (!menu_dialog_is_push_pending()) return; @@ -264,10 +265,10 @@ void menu_dialog_push(void) info.list = menu_entries_get_menu_stack_ptr(0); info.enum_idx = MENU_ENUM_LABEL_HELP; - // Set the label string, if it exists. - const char *label = msg_hash_to_str(MENU_ENUM_LABEL_HELP); + /* Set the label string, if it exists. */ + label = msg_hash_to_str(MENU_ENUM_LABEL_HELP); if (label) - info.label = strdup(label); + info.label = strdup(label); menu_displaylist_ctl(DISPLAYLIST_HELP, &info); }