From a9c47c41cc3801cd888bdcdfd18d8f4d9f787ce5 Mon Sep 17 00:00:00 2001 From: Selma Bensaid Date: Mon, 17 Oct 2022 12:52:31 -0700 Subject: futility/cmd_show: set uninitialized variable Fix coreboot standalone build by initializing body_c in show_fw_preamble_buf. BUG=b:254014539 Signed-off-by: Selma Bensaid Change-Id: I963a1e8556b36302d455710d4561fc8460c44405 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3961988 Reviewed-by: Yu-Ping Wu Reviewed-by: Jakub Czapiga Tested-by: Yu-Ping Wu Commit-Queue: Yu-Ping Wu --- futility/cmd_show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'futility') diff --git a/futility/cmd_show.c b/futility/cmd_show.c index 4b11b50f..13461c07 100644 --- a/futility/cmd_show.c +++ b/futility/cmd_show.c @@ -238,7 +238,7 @@ int show_fw_preamble_buf(const char *name, uint8_t *buf, uint32_t len, uint8_t *fv_data = show_option.fv; uint64_t fv_size = show_option.fv_size; struct bios_area_s *fw_body_area = 0; - enum bios_component body_c; + enum bios_component body_c = BIOS_FMAP_FW_MAIN_A; int good_sig = 0; int retval = 0; -- cgit v1.2.1