1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

fundamental: Fix iteration count in chid_calculate

This commit is contained in:
anonymix007 2024-11-06 23:10:50 +03:00
parent 5d8d7d8e43
commit 9f9c847609

View File

@ -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