[vala] Initialize DelegateType local variables
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Initialize DelegateType local variables
- Date: Fri, 29 Jan 2010 12:41:36 +0000 (UTC)
commit ecceaa16db8f975c5a3b8cc6c66e2d3aa84d7d42
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Sun Jan 24 01:43:05 2010 +0100
Initialize DelegateType local variables
Fixes bug 607902.
codegen/valaccodebasemodule.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index e890951..a374679 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2914,7 +2914,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
vardecl.initializer = clist;
vardecl.init0 = true;
} else if (local.variable_type.is_reference_type_or_type_parameter () ||
- local.variable_type.nullable) {
+ local.variable_type.nullable ||
+ local.variable_type is DelegateType) {
vardecl.initializer = new CCodeConstant ("NULL");
vardecl.init0 = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]