[vala/staging] vala: Don't return null if no rank attribute was found
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Don't return null if no rank attribute was found
- Date: Mon, 14 May 2018 09:12:30 +0000 (UTC)
commit 5bdf8f5669fd49a36ee5a98974039087f32afa57
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon May 14 11:06:30 2018 +0200
vala: Don't return null if no rank attribute was found
There was already an error message introduced with
3158ae7a0f990b44f114d51498636e669609af0d
https://bugzilla.gnome.org/show_bug.cgi?id=660991
vala/valastruct.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 23c0053..bca7851 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -140,6 +140,7 @@ public class Vala.Struct : TypeSymbol {
_rank = st.rank;
} else {
Report.error (source_reference, "internal error: struct has
no rank");
+ return 0;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]