[vala] D-Bus: Fix uninitialized error variable in servers
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix uninitialized error variable in servers
- Date: Mon, 14 Sep 2009 22:07:31 +0000 (UTC)
commit af3e4619faadebbd0dde61fc241b728287dc3302
Author: Jürg Billeter <j bitron ch>
Date: Tue Sep 15 00:06:54 2009 +0200
D-Bus: Fix uninitialized error variable in servers
codegen/valadbusservermodule.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valadbusservermodule.vala b/codegen/valadbusservermodule.vala
index ab854ab..e81a395 100644
--- a/codegen/valadbusservermodule.vala
+++ b/codegen/valadbusservermodule.vala
@@ -128,7 +128,11 @@ internal class Vala.DBusServerModule : DBusClientModule {
cdecl = new CCodeDeclaration ("GError*");
cdecl.add_declarator (new CCodeVariableDeclarator ("error", new CCodeConstant ("NULL")));
- out_postfragment.append (cdecl);
+ if (m.coroutine) {
+ ready_block.add_statement (cdecl);
+ } else {
+ block.add_statement (cdecl);
+ }
block.add_statement (prefragment);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]