]> Git Repo - qemu.git/commitdiff
main-loop: fix select_ret uninitialized variable warning
authorStefan Hajnoczi <[email protected]>
Wed, 20 Feb 2013 10:28:24 +0000 (11:28 +0100)
committerAnthony Liguori <[email protected]>
Thu, 21 Feb 2013 22:17:30 +0000 (16:17 -0600)
Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-id: 1361356113[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
main-loop.c

index 6f52ac39bc7f6bfede652230bbad4a80ce44b6c5..d0d8fe49502cdaeb864841ba3f6d4055e4293725 100644 (file)
@@ -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;
This page took 0.023865 seconds and 4 git commands to generate.