1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-07-24 19:07:52 +02:00

Merge branch 'ebassi/issue-2770' into 'main'

Empty values are not valid GParamSpec

Closes 

See merge request 
This commit is contained in:
Emmanuele Bassi
2022-09-25 19:41:00 +00:00

@@ -894,6 +894,9 @@ param_param_is_valid (GParamSpec *pspec,
{
GParamSpec *param = value->data[0].v_pointer;
if (param == NULL)
return FALSE;
return g_value_type_compatible (G_PARAM_SPEC_TYPE (param), G_PARAM_SPEC_VALUE_TYPE (pspec));
}