Commit e9b7ecef authored by Dan Williams's avatar Dan Williams

doc: fix default value retrieval for settings specification generator

parent a7e3d2ac
......@@ -128,6 +128,7 @@ write_one_setting (FILE *f, SettingNewFunc func)
value_desc = g_param_spec_get_blurb (*iter);
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (*iter));
g_param_value_set_default (*iter, &value);
default_value = g_strdup_value_contents (&value);
if (default_value && !strcmp (default_value, "NULL")) {
g_free (default_value);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment