From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] fix some variable initizalization issues
Date: Wed, 12 Nov 2008 11:22:07 +0000 [thread overview]
Message-ID: <491ABC5F.9030504@eu.citrix.com> (raw)
In-Reply-To: <49103994.5090406@eu.citrix.com>
I think this patch should be applied, makes valgrind happier :)
Stefano Stabellini wrote:
> Hi all,
> this patch fixes two variable initialization issues.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>
> ---
>
> diff --git a/hw/vga.c b/hw/vga.c
> index 9540db0..ca8acfe 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;
> }
> diff --git a/qemu-char.c b/qemu-char.c
> index ceffbed..be40cee 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -935,6 +935,7 @@ static CharDriverState *qemu_chr_open_pty(void)
> }
>
> /* Set raw attributes on the pty. */
> + tcgetattr(slave_fd, &tty);
> cfmakeraw(&tty);
> tcsetattr(slave_fd, TCSAFLUSH, &tty);
> close(slave_fd);
>
>
>
next prev parent reply other threads:[~2008-11-12 11:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 12:01 [Qemu-devel] [PATCH] fix some variable initizalization issues Stefano Stabellini
2008-11-12 11:22 ` Stefano Stabellini [this message]
2008-11-12 15:00 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=491ABC5F.9030504@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.