From 5bdf8f5669fd49a36ee5a98974039087f32afa57 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Mon, 14 May 2018 11:06:30 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/vala/valastruct.vala b/vala/valastruct.vala index 23c005363..bca78510a 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; } } } -- 2.47.2