From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0HCy-00046q-Fh for qemu-devel@nongnu.org; Wed, 12 Nov 2008 10:00:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0HCw-00046c-O7 for qemu-devel@nongnu.org; Wed, 12 Nov 2008 10:00:38 -0500 Received: from [199.232.76.173] (port=55298 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0HCw-00046W-Gx for qemu-devel@nongnu.org; Wed, 12 Nov 2008 10:00:38 -0500 Received: from savannah.gnu.org ([199.232.41.3]:41244 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0HCw-0007jA-6F for qemu-devel@nongnu.org; Wed, 12 Nov 2008 10:00:38 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L0HCv-0003Jp-Ab for qemu-devel@nongnu.org; Wed, 12 Nov 2008 15:00:37 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L0HCu-0003Jl-UI for qemu-devel@nongnu.org; Wed, 12 Nov 2008 15:00:37 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Wed, 12 Nov 2008 15:00:37 +0000 Subject: [Qemu-devel] [5705] fix some variable initizalization issues (Stefano Stabellini) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Anthony Liguori 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);