]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: fix parsing of nullable types
authorEvan Nemerson <evan@coeus-group.com>
Fri, 23 Sep 2011 03:28:05 +0000 (20:28 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Fri, 23 Sep 2011 20:07:11 +0000 (13:07 -0700)
vala/valagirparser.vala

index 966e6d19c9eff326cad1ed8b7db85e56ee6727f4..bd25d9bec3c617a28aa3440e9be485cdd9264ca5 100644 (file)
@@ -1501,7 +1501,7 @@ public class Vala.GirParser : CodeVisitor {
                        }
                }
 
-               if (array_data != null) {
+               if (array_data != null && array_data.length != 0) {
                        type = new ArrayType (type, (int) array_data.length - 1, source_reference);
                }