Fix sequence iteration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Sep 2011 19:34:00 +0000 (15:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Sep 2011 19:34:00 +0000 (15:34 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
types/sequence.c

index ae91ef87798683b6958892d32fc331c3da09c0cb..7d060e4b06224098fe7acfeceda84f8a24589077 100644 (file)
@@ -66,6 +66,11 @@ int sequence_rw(struct stream_pos *pos, struct definition *definition)
                *field = sequence_declaration->elem->definition_new(sequence_declaration->elem,
                                          sequence_definition->p.scope,
                                          name, i, NULL);
+       }
+       for (i = 0; i < len; i++) {
+               struct definition **field;
+
+               field = (struct definition **) &g_ptr_array_index(sequence_definition->elems, i);
                ret = generic_rw(pos, *field);
                if (ret)
                        return ret;
This page took 0.032874 seconds and 4 git commands to generate.