summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2010-09-27 20:23:07 +0200
committerChristian Persch <chpe@gnome.org>2010-09-27 20:27:46 +0200
commitad5953026a8e9e8fe423e7955b845a55b4ffdf47 (patch)
tree7ef9de8354fcd141b66b8cd35159dbd2e381269e
parent1ebbfe99fbaa63136628c4f79ba04b38f2821b3a (diff)
downloadgconf-ad5953026a8e9e8fe423e7955b845a55b4ffdf47.tar.gz
Fix build warnings introduced in a612aad7fcf817d6174505e8ac519e6a554d15d32.32.0
Approved by r-t on IRC.
-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;