diff --git a/glib/gvariant.c b/glib/gvariant.c index 6ed560d0d..b0648a9db 100644 --- a/glib/gvariant.c +++ b/glib/gvariant.c @@ -1846,7 +1846,7 @@ g_variant_equal (gconstpointer one, strone = g_variant_print ((GVariant *) one, FALSE); strtwo = g_variant_print ((GVariant *) two, FALSE); - equal = strcmp (strone, strtwo); + equal = strcmp (strone, strtwo) == 0; g_free (strone); g_free (strtwo); }