mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-14 11:38:05 +02:00
gvariant-core: Add pre-condition on variant store data being non-null
We define the data not-nullable in docs, but we didn't check this prerequisite programmatically
This commit is contained in:
parent
28037242d5
commit
39c05b1312
@ -1415,6 +1415,8 @@ void
|
||||
g_variant_store (GVariant *value,
|
||||
gpointer data)
|
||||
{
|
||||
g_return_if_fail (data != NULL);
|
||||
|
||||
g_variant_lock (value);
|
||||
|
||||
if (value->state & STATE_SERIALISED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user