aboutsummaryrefslogtreecommitdiff
path: root/main-loop.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-02-20 11:28:24 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-21 16:17:30 -0600
commit134a03e0b3d34b01b68107104c525c3bff1211d4 (patch)
tree9e5f242673a50e77c35809bd824b96c4735310e2 /main-loop.c
parent70aa41b56ce3f34fceac44e828ba2d8cc19523ee (diff)
downloadqemu-134a03e0b3d34b01b68107104c525c3bff1211d4.zip
qemu-134a03e0b3d34b01b68107104c525c3bff1211d4.tar.gz
qemu-134a03e0b3d34b01b68107104c525c3bff1211d4.tar.bz2
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>
Diffstat (limited to 'main-loop.c')
-rw-r--r--main-loop.c3
1 files changed, 2 insertions, 1 deletions
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;