mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Fix an oversight
_Always_ explicitly compare strcmp to 0... this was pointed out in bug 610484 by Christian Persch.
This commit is contained in:
parent
19e438556c
commit
ecb45f4382
@ -1846,7 +1846,7 @@ g_variant_equal (gconstpointer one,
|
|||||||
|
|
||||||
strone = g_variant_print ((GVariant *) one, FALSE);
|
strone = g_variant_print ((GVariant *) one, FALSE);
|
||||||
strtwo = g_variant_print ((GVariant *) two, FALSE);
|
strtwo = g_variant_print ((GVariant *) two, FALSE);
|
||||||
equal = strcmp (strone, strtwo);
|
equal = strcmp (strone, strtwo) == 0;
|
||||||
g_free (strone);
|
g_free (strone);
|
||||||
g_free (strtwo);
|
g_free (strtwo);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user