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:
Marco Trevisan (Treviño) 2025-01-30 18:36:03 +01:00
parent 28037242d5
commit 39c05b1312

View File

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