diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-02-20 11:28:24 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-21 16:17:30 -0600 |
commit | 134a03e0b3d34b01b68107104c525c3bff1211d4 (patch) | |
tree | 9e5f242673a50e77c35809bd824b96c4735310e2 | |
parent | 70aa41b56ce3f34fceac44e828ba2d8cc19523ee (diff) |
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>
-rw-r--r-- | main-loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main-loop.c b/main-loop.c index 6f52ac39bc..d0d8fe4950 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; |