diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-05-14 11:06:30 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-05-14 11:06:30 +0200 |
commit | 5bdf8f5669fd49a36ee5a98974039087f32afa57 (patch) | |
tree | 014b348aef1f087f7e01e659a3f10d07defe840f /vala/valastruct.vala | |
parent | 2fb561a03d79be2b572e4f9fb34845241746fcf8 (diff) | |
download | vala-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
Diffstat (limited to 'vala/valastruct.vala')
-rw-r--r-- | vala/valastruct.vala | 1 |
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; } } } |