]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: fix array length parsing
authorEvan Nemerson <evan@coeus-group.com>
Mon, 1 Nov 2010 07:32:14 +0000 (00:32 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 8 Nov 2010 09:43:20 +0000 (01:43 -0800)
vala/valagirparser.vala

index 950545dc865be54f8a5c42c32b5d6e9137fef924..bc959fae84ef2c7e290b780268960574ead8a8d7 100644 (file)
@@ -1687,6 +1687,10 @@ public class Vala.GirParser : CodeVisitor {
                bool is_array = false;
                string type_name = reader.get_attribute ("name");
 
+               if (&array_length_index != null) {
+                       array_length_index = -1;
+               }
+
                if (reader.name == "array") {
                        is_array = true;
                        start_element ("array");