Make array-printing code easier to follow
authorWill Thompson <will.thompson@collabora.co.uk>
Wed, 9 Sep 2009 19:35:13 +0000 (20:35 +0100)
committerColin Walters <walters@verbum.org>
Thu, 28 Jan 2010 22:01:23 +0000 (17:01 -0500)
commit7a8fcdee22d2716f7891e030cda0e1e6536d0054
treedc0b20cf56aaf6a3e0b0ce0bea22fb0b821bfece
parente2aee8bdebc0f95ff626680b9882e74442c05f98
Make array-printing code easier to follow

Previously dbus_message_iter_get_arg_type() was called twice: once in
the loop condition to update 'current_type', and once to check if the
loop will run again. This patch moves updating current_type to the end
of the loop body.
tools/dbus-print-message.c