From ea3417b5eb7de9d1c0a41724c0281fa7d30a97f8 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 20 Nov 2020 20:08:42 +0100 Subject: util/amdfwtool: add missing zero-initialization for local variable Change-Id: Ib156b16b874f74f58bd816071db3a7acf33c5aaf Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/47817 Reviewed-by: Furquan Shaikh Reviewed-by: Marshall Dawson Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- util/amdfwtool/data_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util/amdfwtool') diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c index c2ce32befb..21e7317e22 100644 --- a/util/amdfwtool/data_parse.c +++ b/util/amdfwtool/data_parse.c @@ -224,7 +224,8 @@ static uint8_t find_register_fw_filename_bios_dir(char *fw_name, char *filename, { amd_bios_type fw_type = AMD_BIOS_INVALID; amd_bios_entry *bhd_tableptr; - uint8_t subprog, instance = 0; + uint8_t subprog = 0; + uint8_t instance = 0; (void) (cb_config); /* Remove warning and reserved for future. */ -- cgit v1.2.3