summaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-12 15:00:36 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-12 15:00:36 +0000
commit75e20f5dd83da50f04ebd5cce21bc3a49d30ed00 (patch)
tree13f3965d1dea53ea9e112a11b550a1c9f01c3fc7 /hw/vga.c
parentf07467534584d0299728d6308551f556a5447f92 (diff)
downloadqemu-75e20f5dd83da50f04ebd5cce21bc3a49d30ed00.tar.gz
qemu-75e20f5dd83da50f04ebd5cce21bc3a49d30ed00.tar.bz2
qemu-75e20f5dd83da50f04ebd5cce21bc3a49d30ed00.zip
fix some variable initizalization issues (Stefano Stabellini)
this patch fixes two variable initialization issues. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5705 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 9540db0343..ca8acfe24e 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2396,7 +2396,7 @@ static void vga_save_dpy_update(DisplayState *s,
static void vga_save_dpy_resize(DisplayState *s, int w, int h)
{
s->linesize = w * 4;
- s->data = qemu_malloc(h * s->linesize);
+ s->data = qemu_mallocz(h * s->linesize);
vga_save_w = w;
vga_save_h = h;
}