[glib/gdbus-codegen] gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/gdbus-codegen] gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
- Date: Fri, 15 Apr 2011 19:57:55 +0000 (UTC)
commit cade3cb1dab58ee0ab291efbab03e5b047b2a5be
Author: David Zeuthen <davidz redhat com>
Date: Fri Apr 15 13:51:10 2011 -0400
gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
Signed-off-by: David Zeuthen <davidz redhat com>
gio/gdbus-codegen/codegen.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbus-codegen/codegen.py b/gio/gdbus-codegen/codegen.py
index c1c8ea3..7a685f8 100644
--- a/gio/gdbus-codegen/codegen.py
+++ b/gio/gdbus-codegen/codegen.py
@@ -136,7 +136,10 @@ class CodeGenerator:
'{\n'
' gboolean ret = FALSE;\n'
' if (a == NULL && b == NULL)\n'
- ' goto out;\n'
+ ' {\n'
+ ' ret = TRUE;\n'
+ ' goto out;\n'
+ ' }\n'
' if (a == NULL || b == NULL)\n'
' goto out;\n'
' ret = g_variant_equal (a, b);\n'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]