From: Rico Tzschichholz Date: Sun, 22 Apr 2018 12:54:41 +0000 (+0200) Subject: girparser: Deal with missing "name" attribute by falling back on "c:type" X-Git-Tag: 0.34.18~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ae4e16a6f472e6e843e4718488c2bad0c4fbc6;p=thirdparty%2Fvala.git girparser: Deal with missing "name" attribute by falling back on "c:type" This is simply a last resort to report a meaningfull error. --- diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala index 5bc4d62cb..bd4261c83 100644 --- a/vala/valagirparser.vala +++ b/vala/valagirparser.vala @@ -2591,6 +2591,10 @@ public class Vala.GirParser : CodeVisitor { type_name = "GLib.GenericArray"; } + if (type_name == null) { + type_name = ctype; + } + DataType type = parse_type_from_gir_name (type_name, out no_array_length, out array_null_terminated, ctype); // type arguments / element types