qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5705] fix some variable initizalization issues (Stefano Stabellini)
@ 2008-11-12 15:00 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-11-12 15:00 UTC (permalink / raw)
  To: qemu-devel

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 <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-12 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 15:00 [Qemu-devel] [5705] fix some variable initizalization issues (Stefano Stabellini) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).