From: Luca Bruno Date: Tue, 2 Aug 2011 14:25:31 +0000 (+0200) Subject: Guard for possible errors when checking the value of constants X-Git-Tag: 0.13.2~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4d21426be1e1256b3368bb68ced00a49906dcc7;p=thirdparty%2Fvala.git Guard for possible errors when checking the value of constants Fixes bug 655726. --- diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala index b805203a0..53b84c60e 100644 --- a/vala/valaconstant.vala +++ b/vala/valaconstant.vala @@ -138,7 +138,10 @@ public class Vala.Constant : Symbol, Lockable { } else { value.target_type = type_reference; - value.check (context); + if (!value.check (context)) { + error = true; + return false; + } if (!value.value_type.compatible (type_reference)) { error = true;