diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 91bea9f9c3..a8e0c4a65b 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -662,10 +662,12 @@ static void mui_render_menu_list(mui_handle_t *mui, { int y; size_t selection; - char rich_label[PATH_MAX_LENGTH] = {0}; - char entry_value[PATH_MAX_LENGTH] = {0}; + char rich_label[PATH_MAX_LENGTH]; + char entry_value[PATH_MAX_LENGTH]; bool entry_selected = false; + rich_label[0] = entry_value[0] = '\0'; + if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection)) continue;