Skip to content

Commit

Permalink
Update menu_dialog.c
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 authored Nov 21, 2017
1 parent 9e3d6ad commit d36d3e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions menu/widgets/menu_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit d36d3e2

Please sign in to comment.