summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gconf/gconf-changeset.c2
-rw-r--r--gconf/gconf-value.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gconf/gconf-changeset.c b/gconf/gconf-changeset.c
index e27f1df7..56777bbc 100644
--- a/gconf/gconf-changeset.c
+++ b/gconf/gconf-changeset.c
@@ -80,7 +80,7 @@ gconf_change_set_new (void)
GConfChangeSet*
gconf_change_set_ref (GConfChangeSet* cs)
{
- g_return_if_fail(cs != NULL);
+ g_return_val_if_fail(cs != NULL, NULL);
cs->refcount += 1;
diff --git a/gconf/gconf-value.c b/gconf/gconf-value.c
index de42f752..dd198d4a 100644
--- a/gconf/gconf-value.c
+++ b/gconf/gconf-value.c
@@ -1504,7 +1504,7 @@ gconf_entry_new_nocopy (char* key, GConfValue* val)
GConfEntry *
gconf_entry_ref (GConfEntry *entry)
{
- g_return_if_fail (entry != NULL);
+ g_return_val_if_fail (entry != NULL, NULL);
REAL_ENTRY (entry)->refcount += 1;