Commit e156ca9c authored by Richard Hughes's avatar Richard Hughes

fwupd: Don't crash if when getting the locked status

parent 1f6c3454
......@@ -41,6 +41,8 @@ gboolean
gs_fwupd_app_get_is_locked (GsApp *app)
{
GVariant *tmp = gs_app_get_metadata_variant (app, "fwupd::IsLocked");
if (tmp == NULL)
return FALSE;
return g_variant_get_boolean (tmp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment