diff options
author | Jürg Billeter <j@bitron.ch> | 2010-10-25 15:12:50 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-10-25 15:12:50 +0200 |
commit | b8c69309ed9a425a814a9820c41379ef2a70b5da (patch) | |
tree | 1e75cee40cac50f86f9ba64ca8fc2279bfa4ce6b /codegen/valagobjectmodule.vala | |
parent | dc16c0314f529936eeaeb0e5e6a96ad04fb04334 (diff) | |
download | vala-b8c69309ed9a425a814a9820c41379ef2a70b5da.tar.gz |
Fix use of uninitialized variable in static constructors
Fixes bug 633013.
Diffstat (limited to 'codegen/valagobjectmodule.vala')
-rw-r--r-- | codegen/valagobjectmodule.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala index 89c483421..ee9462623 100644 --- a/codegen/valagobjectmodule.vala +++ b/codegen/valagobjectmodule.vala @@ -513,7 +513,7 @@ public class Vala.GObjectModule : GTypeModule { /* always separate error parameter and inner_error local variable * as error may be set to NULL but we're always interested in inner errors */ - ccode.add_declaration ("GError *", new CCodeVariableDeclarator ("_inner_error_", new CCodeConstant ("NULL"))); + ccode.add_declaration ("GError *", new CCodeVariableDeclarator.zero ("_inner_error_", new CCodeConstant ("NULL"))); } pop_context (); |