mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
gsettingschema: fix uninitialized value warning
This error could actually happen in case the assertions are off.
This commit is contained in:
@@ -950,7 +950,7 @@ g_settings_schema_get_value (GSettingsSchema *schema,
|
|||||||
{
|
{
|
||||||
GSettingsSchema *s = schema;
|
GSettingsSchema *s = schema;
|
||||||
GVariantIter *iter;
|
GVariantIter *iter;
|
||||||
GVariant *value;
|
GVariant *value = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (schema != NULL, NULL);
|
g_return_val_if_fail (schema != NULL, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user