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

Empty values are not valid GParamSpec

Closes #2770

See merge request GNOME/glib!2921
This commit is contained in:
Emmanuele Bassi 2022-09-25 19:41:00 +00:00
commit f0dd96c287

View File

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