dbus-send: Reassure the compiler that secondary_type is initialized
authorSimon McVittie <smcv@collabora.com>
Mon, 25 Sep 2017 15:19:39 +0000 (16:19 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 25 Sep 2017 15:59:23 +0000 (16:59 +0100)
commit7b623b65c65d979a6a2c4d2e0efcfaf7f045f6cc
tree545e013e4620b92c2c539e43bd19c883b30836fb
parente3d15a0d578ae34a09b161b12e603ef1a58e2f68
dbus-send: Reassure the compiler that secondary_type is initialized

It's initialized to a non-trivial value whenever container_type
is DBUS_TYPE_DICT_ENTRY, and subsequently only used if
container_type is DBUS_TYPE_DICT_ENTRY, but Debian's gcc 7.2.0-7
doesn't seem to be able to infer that any more, causing build failure
under -Werror=maybe-uninitialized.

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