From 9f9c847609656d201e0aecdd82fcb8d412a275be Mon Sep 17 00:00:00 2001 From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:10:50 +0300 Subject: [PATCH] fundamental: Fix iteration count in chid_calculate --- src/fundamental/chid-fundamental.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fundamental/chid-fundamental.c b/src/fundamental/chid-fundamental.c index 145bf408bc3..3aa444ab887 100644 --- a/src/fundamental/chid-fundamental.c +++ b/src/fundamental/chid-fundamental.c @@ -110,7 +110,8 @@ static const uint32_t chid_smbios_table[CHID_TYPES_MAX] = { void chid_calculate(const char16_t *const smbios_fields[static _CHID_SMBIOS_FIELDS_MAX], EFI_GUID ret_chids[static CHID_TYPES_MAX]) { assert(smbios_fields); assert(ret_chids); - for (size_t i = 0; i < _CHID_SMBIOS_FIELDS_MAX; i++) + + for (size_t i = 0; i < CHID_TYPES_MAX; i++) if (chid_smbios_table[i] != 0) get_chid(smbios_fields, chid_smbios_table[i], &ret_chids[i]); else -- 2.47.3