main-loop: fix select_ret uninitialized variable warning
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-id: 1361356113-11049-2-git-send-email-stefanha@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
70aa41b56c
commit
134a03e0b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user