summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@google.com>2017-11-18 15:54:24 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-11-30 00:26:11 +0000
commit05ffc9cd0d993a962ca85aeec2eb984116454e06 (patch)
tree8d397ece754a56ddfb89c0d969eff4eee72eec3f
parentaa9cca4019164120f0ce8b756c0cbb8751c7ac3d (diff)
downloadvboot-05ffc9cd0d993a962ca85aeec2eb984116454e06.tar.gz
Fix vboot compilation with coreboot-sdk
BUG=none BRANCH=none TEST=Upstream builder does not fail with uninitialized variable anymore like this: firmware/lib/vboot_ui_menu.c: In function 'vb2_get_current_menu_size': firmware/lib/vboot_ui_menu.c:255:15: error: 'temp_menu' may be used uninitialized in this function [-Werror=maybe-uninitialized] *menu_array = temp_menu; ~~~~~~~~~~~~^~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Change-Id: Idb1690c7b0becf3556cad379160fe152707ae843 Reviewed-on: https://chromium-review.googlesource.com/777805 Commit-Ready: Stefan Reinauer <reinauer@google.com> Tested-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Martin Roth <martinroth@chromium.org> Reviewed-by: Shelley Chen <shchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/798128 Commit-Queue: Shelley Chen <shchen@chromium.org> Tested-by: Shelley Chen <shchen@chromium.org>
-rw-r--r--firmware/lib/vboot_ui_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_ui_menu.c b/firmware/lib/vboot_ui_menu.c
index 11254cdb..851e905b 100644
--- a/firmware/lib/vboot_ui_menu.c
+++ b/firmware/lib/vboot_ui_menu.c
@@ -221,7 +221,7 @@ static char *languages_menu[] = {
void vb2_get_current_menu_size(VB_MENU menu, char ***menu_array,
uint32_t *size)
{
- char **temp_menu;
+ char **temp_menu = NULL;
switch(menu) {
case VB_MENU_DEV_WARNING: