diff options
author | Selma Bensaid <selma.bensaid@intel.com> | 2022-10-17 12:52:31 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-24 10:59:28 +0000 |
commit | a9c47c41cc3801cd888bdcdfd18d8f4d9f787ce5 (patch) | |
tree | 5c3a4ef37edab7a36de306b672a805d152258411 | |
parent | e18a6cda6b74df772f98daeefe1273807c3710d8 (diff) | |
download | vboot-a9c47c41cc3801cd888bdcdfd18d8f4d9f787ce5.tar.gz |
futility/cmd_show: set uninitialized variablefactory-trogdor-15210.B
Fix coreboot standalone build by initializing body_c in show_fw_preamble_buf.
BUG=b:254014539
Signed-off-by: Selma Bensaid <selma.bensaid@intel.com>
Change-Id: I963a1e8556b36302d455710d4561fc8460c44405
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3961988
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Tested-by: Yu-Ping Wu <yupingso@chromium.org>
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
-rw-r--r-- | futility/cmd_show.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |