mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-03 12:40:20 +00:00
trivial: Check for the _UNKNOWN enum when mashalling to GVariant
This commit is contained in:
parent
8012fb3c8d
commit
19a60e62bc
@ -537,7 +537,7 @@ fwupd_security_attr_to_variant (FwupdSecurityAttr *self)
|
||||
FWUPD_RESULT_KEY_HSI_LEVEL,
|
||||
g_variant_new_uint32 (priv->level));
|
||||
}
|
||||
if (priv->result > 0) {
|
||||
if (priv->result != FWUPD_SECURITY_ATTR_RESULT_UNKNOWN) {
|
||||
g_variant_builder_add (&builder, "{sv}",
|
||||
FWUPD_RESULT_KEY_HSI_RESULT,
|
||||
g_variant_new_uint32 (priv->result));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user