Fix an oversight

_Always_ explicitly compare strcmp to 0... this was pointed out in
bug 610484 by Christian Persch.
This commit is contained in:
Matthias Clasen 2010-02-21 15:28:04 -05:00
parent 19e438556c
commit ecb45f4382

View File

@ -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);
}