[5705] fix some variable initizalization issues (Stefano Stabellini)
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 <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/hw/vga.c
trunk/qemu-char.c
Modified: trunk/hw/vga.c
===================================================================
hw/vga.c +1 -1
@@ -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
===================================================================
qemu-char.c +1 -0
@@ -941,6 +941,7 @@ }/* Set raw attributes on the pty. */ +tcgetattr (slave_fd, &tty);cfmakeraw (&tty);tcsetattr (slave_fd,TCSAFLUSH , &tty);close (slave_fd);