This used to be the behaviour before we made these functions
threadsafe; keep it that way.
https://bugzilla.gnome.org/show_bug.cgi?id=737741
GDataElt *data, *data_end;
g_return_val_if_fail (datalist != NULL, NULL);
- g_return_val_if_fail (key_id != 0, NULL);
g_datalist_lock (datalist);
data_end = data + d->len;
while (data < data_end)
{
- if (strcmp (g_quark_to_string (data->key), key) == 0)
+ if (g_strcmp0 (g_quark_to_string (data->key), key) == 0)
{
res = data->data;
break;