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)
committerWill Thompson <will.thompson@collabora.co.uk>
Sun, 1 Nov 2009 13:46:45 +0000 (13:46 +0000)
commit1e14e409a48a96e0599c8f675604735ca132fc0f
tree931ce9a0b36d05ec59e8f63881ed9c0c18c6fa43
parent03cc20707a3e7b2d8629e84d7a766f41edb8b444
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