[gconf] Fix build warnings introduced in a612aad7fcf817d6174505e8ac519e6a554d15d3
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gconf] Fix build warnings introduced in a612aad7fcf817d6174505e8ac519e6a554d15d3
- Date: Mon, 27 Sep 2010 18:29:58 +0000 (UTC)
commit ad5953026a8e9e8fe423e7955b845a55b4ffdf47
Author: Christian Persch <chpe gnome org>
Date: Mon Sep 27 20:23:07 2010 +0200
Fix build warnings introduced in a612aad7fcf817d6174505e8ac519e6a554d15d3
Approved by r-t on IRC.
gconf/gconf-changeset.c | 2 +-
gconf/gconf-value.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gconf/gconf-changeset.c b/gconf/gconf-changeset.c
index e27f1df..56777bb 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 de42f75..dd198d4 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]