mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-25 16:50:50 +00:00
ui/spice-display.c: add missing initialization for valgrind
We can't initialize QXLDevSurfaceCreate field by field because it has a pa hole, and so 4 bytes remain uninitialized when building on x86-64, so just memset. Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
47ecbdf07e
commit
160c31f78f
@ -244,6 +244,8 @@ void qemu_spice_create_host_primary(SimpleSpiceDisplay *ssd)
|
|||||||
{
|
{
|
||||||
QXLDevSurfaceCreate surface;
|
QXLDevSurfaceCreate surface;
|
||||||
|
|
||||||
|
memset(&surface, 0, sizeof(surface));
|
||||||
|
|
||||||
dprint(1, "%s: %dx%d\n", __FUNCTION__,
|
dprint(1, "%s: %dx%d\n", __FUNCTION__,
|
||||||
ds_get_width(ssd->ds), ds_get_height(ssd->ds));
|
ds_get_width(ssd->ds), ds_get_height(ssd->ds));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user