summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-05-14 11:06:30 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-05-14 11:06:30 +0200
commit5bdf8f5669fd49a36ee5a98974039087f32afa57 (patch)
tree014b348aef1f087f7e01e659a3f10d07defe840f
parent2fb561a03d79be2b572e4f9fb34845241746fcf8 (diff)
downloadvala-5bdf8f5669fd49a36ee5a98974039087f32afa57.tar.gz
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
-rw-r--r--vala/valastruct.vala1
1 files changed, 1 insertions, 0 deletions
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;
}
}
}