gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
authorDavid Zeuthen <davidz@redhat.com>
Fri, 15 Apr 2011 17:51:10 +0000 (13:51 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 15 Apr 2011 17:51:10 +0000 (13:51 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbus-codegen/codegen.py

index c1c8ea3..7a685f8 100644 (file)
@@ -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'