util/format: initialize non-important components to 0
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Fri, 24 Jul 2020 16:59:41 +0000 (18:59 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 10:41:00 +0000 (10:41 +0000)
commit28f258536581a740c8da8803cafbd5dc2711efd0
treec11a0a47386126815bdfc896397da06cdc5c0eb4
parentf13042ec7ea6842cbee81590f40b0e5c2e25a9bf
util/format: initialize non-important components to 0

Avoids copying random garbage from the stack.

Found by Coverity.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6067>
src/util/format/u_format_pack.py