dbus-monitor: handle default case for binary mode header
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Jan 2017 20:42:31 +0000 (20:42 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 7 Apr 2017 11:07:21 +0000 (12:07 +0100)
commit67c3ad422cffdd59a8e1706bcc7f875c54f03314
tree06df28e5e940b62cd38a4fec5d68076e89270e54
parent40560fa0c7ec921c8144296c72a80d20f403b8bf
dbus-monitor: handle default case for binary mode header

Also comment why it's OK to not do anything for the modes that don't
have a header. We are effectively treating the default case as one
of those, on the assumption that future modes are more likely to
lack a header than to have one.

Based on part of a patch from Thomas Zimmermann.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
tools/dbus-monitor.c