qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] main-loop/win32: Fix use of uninitialised varia


From: Fabien Chouteau
Subject: Re: [Qemu-devel] [PATCH] main-loop/win32: Fix use of uninitialised variable
Date: Mon, 18 Feb 2013 15:36:27 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 02/18/2013 03:06 PM, Kevin Wolf wrote:
> The F18 mingw cross compiler warns on this one. Probably a good idea to
> fix it.
> 

It's a good idea indeed.

Acked-by: Fabien Chouteau <address@hidden>

> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  main-loop.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/main-loop.c b/main-loop.c
> index 6f52ac3..c9fd77a 100644
> --- a/main-loop.c
> +++ b/main-loop.c
> @@ -330,7 +330,7 @@ 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, g_poll_ret, ret, i;
>      PollingEntry *pe;
>      WaitObjects *w = &wait_objects;
>      gint poll_timeout;
> 


-- 
Fabien Chouteau



reply via email to

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