[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5705] fix some variable initizalization issues (Stefano St
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [5705] fix some variable initizalization issues (Stefano Stabellini) |
Date: |
Wed, 12 Nov 2008 15:00:37 +0000 |
Revision: 5705
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5705
Author: aliguori
Date: 2008-11-12 15:00:36 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
fix some variable initizalization issues (Stefano Stabellini)
this patch fixes two variable initialization issues.
Signed-off-by: Stefano Stabellini <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/hw/vga.c
trunk/qemu-char.c
Modified: trunk/hw/vga.c
===================================================================
--- trunk/hw/vga.c 2008-11-12 10:01:12 UTC (rev 5704)
+++ trunk/hw/vga.c 2008-11-12 15:00:36 UTC (rev 5705)
@@ -2396,7 +2396,7 @@
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;
}
Modified: trunk/qemu-char.c
===================================================================
--- trunk/qemu-char.c 2008-11-12 10:01:12 UTC (rev 5704)
+++ trunk/qemu-char.c 2008-11-12 15:00:36 UTC (rev 5705)
@@ -941,6 +941,7 @@
}
/* Set raw attributes on the pty. */
+ tcgetattr(slave_fd, &tty);
cfmakeraw(&tty);
tcsetattr(slave_fd, TCSAFLUSH, &tty);
close(slave_fd);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5705] fix some variable initizalization issues (Stefano Stabellini),
Anthony Liguori <=