]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Don't return null if no rank attribute was found
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 14 May 2018 09:06:30 +0000 (11:06 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 14 May 2018 09:06:30 +0000 (11:06 +0200)
There was already an error message introduced with
3158ae7a0f990b44f114d51498636e669609af0d

https://bugzilla.gnome.org/show_bug.cgi?id=660991

vala/valastruct.vala

index 23c005363704b5459713f871c0fb481a5431be81..bca78510a668028a321ff660988f90266c37aa1b 100644 (file)
@@ -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;
                                        }
                                }
                        }