mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 04:04:05 +00:00
trivial: bios-attrs: fix a logic bug in lenovo string extraction
Several enumeration attributes were missing their final values
This commit is contained in:
parent
23b7495cbd
commit
fdfdaed911
@ -205,8 +205,8 @@ fu_bios_attr_fixup_lenovo_thinklmi_bug(FwupdBiosAttr *attr, GError **error)
|
|||||||
/* last string */
|
/* last string */
|
||||||
if (possible_vals[i + 1] == NULL &&
|
if (possible_vals[i + 1] == NULL &&
|
||||||
g_strrstr(possible_vals[i], "]") != NULL) {
|
g_strrstr(possible_vals[i], "]") != NULL) {
|
||||||
g_auto(GStrv) stripped_vals = fu_strsplit(possible_vals[1],
|
g_auto(GStrv) stripped_vals = fu_strsplit(possible_vals[i],
|
||||||
strlen(possible_vals[1]),
|
strlen(possible_vals[i]),
|
||||||
"]",
|
"]",
|
||||||
-1);
|
-1);
|
||||||
fwupd_bios_attr_add_possible_value(attr, stripped_vals[0]);
|
fwupd_bios_attr_add_possible_value(attr, stripped_vals[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user