[glib] gsettingschema: fix uninitialized value warning



commit 53a24814f6b69039c971c8c3575cdd92ebbd1882
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Feb 24 17:08:04 2016 +0100

    gsettingschema: fix uninitialized value warning
    
    This error could actually happen in case the assertions are off.

 gio/gsettingsschema.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 8ed800a..5b90d01 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -950,7 +950,7 @@ g_settings_schema_get_value (GSettingsSchema *schema,
 {
   GSettingsSchema *s = schema;
   GVariantIter *iter;
-  GVariant *value;
+  GVariant *value = NULL;
 
   g_return_val_if_fail (schema != NULL, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]