From f71903d020667ae704cf803d0cd64f80c879c6d0 Mon Sep 17 00:00:00 2001 From: aliguori Date: Sun, 12 Oct 2008 21:19:57 +0000 Subject: [PATCH] Make sure to initialize fd_sets in aio.c This was spotted by valgrind. Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5470 c046a42c-6fe2-441c-8c8c-71466251a162 --- aio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aio.c b/aio.c index 687e4bef08..70d3cdc5aa 100644 --- a/aio.c +++ b/aio.c @@ -126,6 +126,9 @@ void qemu_aio_wait(void) walking_handlers = 1; + FD_ZERO(&rdfds); + FD_ZERO(&wrfds); + /* fill fd sets */ LIST_FOREACH(node, &aio_handlers, node) { /* If there aren't pending AIO operations, don't invoke callbacks. -- GitLab