mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01: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);
|
||||
strtwo = g_variant_print ((GVariant *) two, FALSE);
|
||||
equal = strcmp (strone, strtwo);
|
||||
equal = strcmp (strone, strtwo) == 0;
|
||||
g_free (strone);
|
||||
g_free (strtwo);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user