]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core/loader: gunzip(): initialize z_stream
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Mon, 6 Nov 2023 15:00:28 +0000 (15:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Nov 2023 15:00:28 +0000 (15:00 +0000)
commit59a3aff685fdb930244c7aa439e121b60e50f266
treecd8ada8812a2fa947da8c903792d4c90d4b286e1
parentcc8fb0c3ae3c950eb40e969607e17ff16a7519ac
hw/core/loader: gunzip(): initialize z_stream

Coverity signals that variable as being used uninitialized. And really,
when work with external APIs that's better to zero out the structure,
where we set some fields by hand.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Maksim Davydov <davydov-max@yandex-team.ru>
Message-id: 20231017125941.810461-6-vsementsov@yandex-team.ru
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/loader.c