From: Jürg Billeter Date: Wed, 29 Jul 2009 06:18:39 +0000 (+0200) Subject: Fix name mangling in NULL check for out parameters X-Git-Tag: 0.7.5~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee05242952c5f448e504ddb36e3bd3b3962aefae;p=thirdparty%2Fvala.git Fix name mangling in NULL check for out parameters --- diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index ac71cae3b..977ccd30e 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -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); }