[vala] D-Bus: Fix string-marshalled enum handling in async GDBus servers



commit 76738dae7790b249d0599857a5603b392ed85691
Author: Jürg Billeter <j bitron ch>
Date:   Sat Jan 15 14:06:39 2011 +0100

    D-Bus: Fix string-marshalled enum handling in async GDBus servers

 codegen/valagdbusservermodule.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index 3279540..c9c7c03 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;
 					}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]