[Xfce4-commits] <midori:master> katze_object_assign should "return" the same value
Christian Dywan
noreply at xfce.org
Wed Apr 17 01:16:01 CEST 2013
Updating branch refs/heads/master
to be18f418e723e30547a2ad25006b86f7e567ad02 (commit)
from 447929f72526839720e54ed569ecfd5e2fcaf90e (commit)
commit be18f418e723e30547a2ad25006b86f7e567ad02
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Apr 17 00:10:56 2013 +0200
katze_object_assign should "return" the same value
Fixes: https://bugs.launchpad.net/midori/+bug/1060341
katze/katze-utils.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/katze/katze-utils.h b/katze/katze-utils.h
index 90a55f9..0460331 100644
--- a/katze/katze-utils.h
+++ b/katze/katze-utils.h
@@ -36,7 +36,7 @@ G_BEGIN_DECLS
* Unrefs @lvalue if needed and assigns it the value of @rvalue.
**/
#define katze_object_assign(lvalue, rvalue) \
- lvalue = ((lvalue ? g_object_unref (lvalue) : lvalue), rvalue)
+ lvalue = ((lvalue ? g_object_unref (lvalue) : (void)0), rvalue)
/**
* katze_strv_assign:
More information about the Xfce4-commits
mailing list