mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
commit
f0dd96c287
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user