[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/10] ui/spice-display.c: add missing initializatio
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 01/10] ui/spice-display.c: add missing initialization for valgrind |
Date: |
Tue, 12 Jun 2012 09:51:05 +0200 |
From: Alon Levy <address@hidden>
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 <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/spice-display.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 5418eb3..3e8f0b3 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -244,6 +244,8 @@ void qemu_spice_create_host_primary(SimpleSpiceDisplay *ssd)
{
QXLDevSurfaceCreate surface;
+ memset(&surface, 0, sizeof(surface));
+
dprint(1, "%s: %dx%d\n", __FUNCTION__,
ds_get_width(ssd->ds), ds_get_height(ssd->ds));
--
1.7.1
- [Qemu-devel] [PATCH 00/10] spice/vga: make vga memory size configurable., Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 04/10] hw/qxl: ignore guest from guestbug until reset, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 09/10] add pc-1.2, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 06/10] vga: raise xres+yres limits, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 05/10] qxl: reset current_async on qxl_soft_reset, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 01/10] ui/spice-display.c: add missing initialization for valgrind,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 07/10] vga: make vram size configurable, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 08/10] qxl: add vgamem_size_mb and vgamem_size, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 03/10] qxl: stop dirty loging when not in vga mode, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 02/10] hw/qxl: s/qxl_guest_bug/qxl_set_guest_bug/, Gerd Hoffmann, 2012/06/12
- [Qemu-devel] [PATCH 10/10] vga: raise default vgamem size, Gerd Hoffmann, 2012/06/12