[vala] D-Bus: Fix use of uninitialized variables in dbus-glib error handling
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix use of uninitialized variables in dbus-glib error handling
- Date: Wed, 13 Oct 2010 20:44:29 +0000 (UTC)
commit 00b8e2e75b6d3df948aae6139c710e9e6f7c7c8d
Author: Jürg Billeter <j bitron ch>
Date: Wed Oct 13 22:41:08 2010 +0200
D-Bus: Fix use of uninitialized variables in dbus-glib error handling
Fixes bug 615003.
codegen/valadbusclientmodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valadbusclientmodule.vala b/codegen/valadbusclientmodule.vala
index cae3dc9..89b223d 100644
--- a/codegen/valadbusclientmodule.vala
+++ b/codegen/valadbusclientmodule.vala
@@ -1778,11 +1778,11 @@ public class Vala.DBusClientModule : DBusModule {
var error_block = new CCodeBlock ();
var cdecl = new CCodeDeclaration ("GQuark");
- cdecl.add_declarator (new CCodeVariableDeclarator ("_edomain"));
+ cdecl.add_declarator (new CCodeVariableDeclarator.zero ("_edomain", new CCodeConstant ("0")));
error_block.add_statement (cdecl);
cdecl = new CCodeDeclaration ("gint");
- cdecl.add_declarator (new CCodeVariableDeclarator ("_ecode"));
+ cdecl.add_declarator (new CCodeVariableDeclarator.zero ("_ecode", new CCodeConstant ("0")));
error_block.add_statement (cdecl);
generate_client_error_cases (error_block, error_types, new CCodeMemberAccess (new CCodeIdentifier ("_dbus_error"), "name"), new CCodeIdentifier ("_edomain"), new CCodeIdentifier ("_ecode"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]