]> 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)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 13:05:26 +0000 (14:05 +0100)
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);
                }