diff options
author | anonymix007 <48598263+anonymix007@users.noreply.github.com> | 2024-11-06 21:10:50 +0100 |
---|---|---|
committer | anonymix007 <48598263+anonymix007@users.noreply.github.com> | 2024-11-07 22:53:26 +0100 |
commit | 9f9c847609656d201e0aecdd82fcb8d412a275be (patch) | |
tree | cc046926b632decde7115c388e6f62ea0707030c /src | |
parent | fundamental: move string includes from chid-fundamental.c to header (diff) | |
download | systemd-9f9c847609656d201e0aecdd82fcb8d412a275be.tar.xz systemd-9f9c847609656d201e0aecdd82fcb8d412a275be.zip |
fundamental: Fix iteration count in chid_calculate
Diffstat (limited to 'src')
-rw-r--r-- | src/fundamental/chid-fundamental.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fundamental/chid-fundamental.c b/src/fundamental/chid-fundamental.c index 145bf408bc..3aa444ab88 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 |