gdbus-codegen: Fix obvious bug in _g_variant_equal0() implementation
[platform/upstream/glib.git] / 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'