summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/dconf-changeset.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/dconf-changeset.c b/common/dconf-changeset.c
index 481a82e..261d4ff 100644
--- a/common/dconf-changeset.c
+++ b/common/dconf-changeset.c
@@ -141,7 +141,9 @@ dconf_changeset_get (DConfChangeset *change,
if (!g_hash_table_lookup_extended (change->table, key, NULL, &tmp))
return FALSE;
- *value = tmp ? g_variant_ref (tmp) : NULL;
+ if (value)
+ *value = tmp ? g_variant_ref (tmp) : NULL;
+
return TRUE;
}