]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix name mangling in NULL check for out parameters
authorJürg Billeter <j@bitron.ch>
Wed, 29 Jul 2009 06:18:39 +0000 (08:18 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 29 Jul 2009 06:19:24 +0000 (08:19 +0200)
codegen/valaccodemethodmodule.vala

index ac71cae3bd40d0606d77f6e8d56ad8be917e0eff..977ccd30e092eeae0e3504e01281a73ca6b4ec48 100644 (file)
@@ -424,7 +424,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
                                                        var cblock = new CCodeBlock ();
                                                        cblock.add_statement (new CCodeExpressionStatement (a));
 
-                                                       var condition = new CCodeBinaryExpression (CCodeBinaryOperator.INEQUALITY, new CCodeIdentifier (param.name), new CCodeConstant ("NULL"));
+                                                       var condition = new CCodeBinaryExpression (CCodeBinaryOperator.INEQUALITY, get_variable_cexpression (param.name), new CCodeConstant ("NULL"));
                                                        var if_statement = new CCodeIfStatement (condition, cblock);
                                                        cinit.append (if_statement);
                                                }