vala r2275 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2275 - in trunk: . vala
- Date: Sun, 4 Jan 2009 22:48:50 +0000 (UTC)
Author: juergbi
Date: Sun Jan 4 22:48:50 2009
New Revision: 2275
URL: http://svn.gnome.org/viewvc/vala?rev=2275&view=rev
Log:
2009-01-04 JÃrg Billeter <j bitron ch>
* vala/valathrowstatement.vala:
Fix crash when using invalid throw expressions, fixes bug 565571
Modified:
trunk/ChangeLog
trunk/vala/valathrowstatement.vala
Modified: trunk/vala/valathrowstatement.vala
==============================================================================
--- trunk/vala/valathrowstatement.vala (original)
+++ trunk/vala/valathrowstatement.vala Sun Jan 4 22:48:50 2009
@@ -1,6 +1,6 @@
/* valathrowstatement.vala
*
- * Copyright (C) 2007-2008 JÃrg Billeter
+ * Copyright (C) 2007-2009 JÃrg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -84,7 +84,10 @@
error_expression.target_type.value_owned = true;
if (error_expression != null) {
- error_expression.check (analyzer);
+ if (!error_expression.check (analyzer)) {
+ error = true;
+ return false;
+ }
if (!(error_expression.value_type is ErrorType)) {
Report.error (error_expression.source_reference, "`%s' is not an error type".printf (error_expression.value_type.to_string ()));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]