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 <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/440432
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
Shelley Chen
2017-02-09 19:57:15 -08:00
committed by chrome-bot
parent f310106030
commit 00dee97036

View File

@@ -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) {