qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 01/10] main-loop: fix select_ret uninitialize


From: Laszlo Ersek
Subject: Re: [Qemu-devel] [PATCH v3 01/10] main-loop: fix select_ret uninitialized variable warning
Date: Mon, 04 Feb 2013 13:41:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

On 02/04/13 13:12, Stefan Hajnoczi wrote:
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
>  main-loop.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/main-loop.c b/main-loop.c
> index 6f52ac3..d0d8fe4 100644
> --- a/main-loop.c
> +++ b/main-loop.c
> @@ -330,7 +330,8 @@ void qemu_fd_register(int fd)
>  static int os_host_main_loop_wait(uint32_t timeout)
>  {
>      GMainContext *context = g_main_context_default();
> -    int select_ret, g_poll_ret, ret, i;
> +    int select_ret = 0;
> +    int g_poll_ret, ret, i;
>      PollingEntry *pe;
>      WaitObjects *w = &wait_objects;
>      gint poll_timeout;

Reviewed-by: Laszlo Ersek <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]