Merge branch 'param-value-default' into 'master'

Allow using an empty GValue with g_param_value_set_default()

See merge request GNOME/glib!1186
This commit is contained in:
Philip Withnall
2019-10-31 10:22:57 +00:00
4 changed files with 21 additions and 11 deletions

View File

@@ -29,7 +29,6 @@ check_property (const char *output,
if (g_param_value_defaults (pspec, value))
return;
g_value_init (&default_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
g_param_value_set_default (pspec, &default_value);
v = g_strdup_value_contents (value);