g_variant_get_child_value: Add a precondition on length
authorGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 27 May 2011 20:03:04 +0000 (16:03 -0400)
committerColin Walters <walters@verbum.org>
Fri, 27 May 2011 20:05:56 +0000 (16:05 -0400)
commit39ba9c8e49a23c6f8a65e68af64ad5a52c26db08
tree4cdb05d5968d0653efb02d9e17fa735149caac1b
parente61fa51fd5acd6f448a2200e737b7bea033066f9
g_variant_get_child_value: Add a precondition on length

Ensure callers get a warning if they pass a bad length.

Split into a separate commit and changed to order index before
n_children by Colin Walters <walters@verbum.org>
glib/gvariant-core.c