reader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773).
authorRalf Habacker <ralf.habacker@freenet.de>
Wed, 6 May 2015 10:09:19 +0000 (12:09 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 8 May 2015 14:54:42 +0000 (15:54 +0100)
commit77e1b3110a2bbb1a0dc2edba18558fa6026ab4fa
tree017132558210d156a8f81e4c8237ee5be97feaef
parent480f0182fa430e3f5e50e0c719ee0b782cb4aebd
reader_init: Initialize all fields of struct DBusTypeReader (CID 54754, 54772, 54773).

This patch is based on the fix for 'Field reader.array_len_offset is
uninitialized'

Reported by Coverity: CID 54754, 54772, 54773: Uninitialized scalar
variable (UNINIT)

[smcv: also re-order how the class is set when we recurse, so that
the sub-reader's class doesn't end up NULL]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021
dbus/dbus-marshal-recursive.c