From 00dee970368f4f1beefe1bfba234f5c9f9996c91 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Thu, 9 Feb 2017 19:57:15 -0800 Subject: [PATCH] poppy: initializing next_menu_idx to current_menu_idx Get rid of uninitialized variable warning. BUG=chrome-os-partner:61275 BRANCH=None TEST=make cgpt WERROR= STATIC=1 Change-Id: I31faa557406c6a90cfdea8571620675c81c0c0ec Signed-off-by: Shelley Chen Reviewed-on: https://chromium-review.googlesource.com/440432 Reviewed-by: Hung-Te Lin --- firmware/lib/vboot_ui_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/lib/vboot_ui_menu.c b/firmware/lib/vboot_ui_menu.c index 18c8fe0a89..045dd9bced 100644 --- a/firmware/lib/vboot_ui_menu.c +++ b/firmware/lib/vboot_ui_menu.c @@ -393,7 +393,7 @@ VbError_t vb2_set_menu_items(VB_MENU new_current_menu, VbError_t vb2_update_menu() { VbError_t ret = VBERROR_SUCCESS; - VB_MENU next_menu_idx; + VB_MENU next_menu_idx = current_menu_idx; switch(current_menu) { case VB_MENU_DEV_WARNING: switch(current_menu_idx) {