[glib] GSettings: fix for loop in 'extends' functionality
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSettings: fix for loop in 'extends' functionality
- Date: Mon, 28 Oct 2013 19:10:45 +0000 (UTC)
commit 0d89d38cac5dddeade2c3bd21a27b6d8de997fa0
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Oct 28 12:10:13 2013 -0700
GSettings: fix for loop in 'extends' functionality
Obvious mistake :(
gio/gsettingsschema.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 33ecd72..bdbb08d 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -941,8 +941,8 @@ g_settings_schema_get_value (GSettingsSchema *schema,
g_return_val_if_fail (schema != NULL, NULL);
- for (s = schema; s; s = schema->extends)
- if ((value = gvdb_table_get_raw_value (schema->table, key)))
+ for (s = schema; s; s = s->extends)
+ if ((value = gvdb_table_get_raw_value (s->table, key)))
break;
if G_UNLIKELY (value == NULL || !g_variant_is_of_type (value, G_VARIANT_TYPE_TUPLE))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]