trivial: uefi: correct a logic error in setting variable

efi_guid_cmp uses memcmp and hence should return 0 when a match
is found.
This commit is contained in:
Mario Limonciello 2018-12-10 16:42:00 -06:00 committed by Mario Limonciello
parent c9d775c321
commit 6131f5df8f

View File

@ -108,7 +108,7 @@ fu_uefi_setup_bootnext_with_dp (const guint8 *dp_buf, guint8 *opt, gssize opt_si
efidp found_dp;
g_autofree guint8 *var_data_tmp = NULL;
if (efi_guid_cmp (guid, &efi_guid_global))
if (efi_guid_cmp (guid, &efi_guid_global) == 0)
continue;
rc = sscanf (name, "Boot%hX%n", &entry, &scanned);
if (rc < 0) {