[vala] Fix crash in CCodeVariableDeclarator without initializer
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix crash in CCodeVariableDeclarator without initializer
- Date: Sun, 27 Sep 2009 14:51:14 +0000 (UTC)
commit 5283d62e622b8c3419048948936405afc547958b
Author: Jürg Billeter <j bitron ch>
Date: Sun Sep 27 16:40:46 2009 +0200
Fix crash in CCodeVariableDeclarator without initializer
ccode/valaccodevariabledeclarator.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ccode/valaccodevariabledeclarator.vala b/ccode/valaccodevariabledeclarator.vala
index cf3a9c2..8203d57 100644
--- a/ccode/valaccodevariabledeclarator.vala
+++ b/ccode/valaccodevariabledeclarator.vala
@@ -78,7 +78,7 @@ public class Vala.CCodeVariableDeclarator : CCodeDeclarator {
writer.write_string (declarator_suffix);
}
- if (init0) {
+ if (initializer != null && init0) {
writer.write_string (" = ");
initializer.write (writer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]