From 76738dae7790b249d0599857a5603b392ed85691 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Sat, 15 Jan 2011 14:06:39 +0100 Subject: [PATCH] D-Bus: Fix string-marshalled enum handling in async GDBus servers --- codegen/valagdbusservermodule.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala index 32795401..c9c7c03f 100644 --- a/codegen/valagdbusservermodule.vala +++ b/codegen/valagdbusservermodule.vala @@ -90,7 +90,7 @@ public class Vala.GDBusServerModule : GDBusClientModule { bool uses_error = false; if (!m.coroutine || ready) { - ccode.add_declaration ("GError*", new CCodeVariableDeclarator ("error", new CCodeConstant ("NULL"))); + ccode.add_declaration ("GError*", new CCodeVariableDeclarator.zero ("error", new CCodeConstant ("NULL"))); uses_error = true; } @@ -154,7 +154,7 @@ public class Vala.GDBusServerModule : GDBusClientModule { if (may_fail) { if (!uses_error) { - ccode.add_declaration ("GError*", new CCodeVariableDeclarator ("error", new CCodeConstant ("NULL"))); + ccode.add_declaration ("GError*", new CCodeVariableDeclarator.zero ("error", new CCodeConstant ("NULL"))); uses_error = true; } -- 2.11.4.GIT