Patchwork [v2,1/9] main-loop: fix select_ret uninitialized variable warning

login
register
mail settings
Submitter Stefan Hajnoczi
Date Feb. 1, 2013, 1:53 p.m.
Message ID <1359726808-11728-2-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/217504/
State New
Headers show

Comments

Stefan Hajnoczi - Feb. 1, 2013, 1:53 p.m.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 main-loop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

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;