trivial: Fix the comparison function in fu_plugin_get_config_value_boolean()

This commit is contained in:
Richard Hughes 2020-02-21 12:04:32 +00:00
parent dbdafa303e
commit 5337a43802

View File

@ -2544,7 +2544,7 @@ fu_plugin_get_config_value_boolean (FuPlugin *self, const gchar *key)
g_autofree gchar *tmp = fu_plugin_get_config_value (self, key);
if (tmp == NULL)
return FALSE;
return g_ascii_strcasecmp (tmp, "true");
return g_ascii_strcasecmp (tmp, "true") == 0;
}
/**