summaryrefslogtreecommitdiff
path: root/aio.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-12 21:19:57 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-12 21:19:57 +0000
commit1a1440b44b2972d77ad8b5e30121b2db7182f374 (patch)
tree1ce83f1af2963ed7a8083282fcf1421708c31f64 /aio.c
parentd45eb08f333dcc30554dc4079ab2b4e19a385946 (diff)
downloadqemu-1a1440b44b2972d77ad8b5e30121b2db7182f374.tar.gz
qemu-1a1440b44b2972d77ad8b5e30121b2db7182f374.tar.bz2
qemu-1a1440b44b2972d77ad8b5e30121b2db7182f374.zip
Make sure to initialize fd_sets in aio.c
This was spotted by valgrind. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5470 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'aio.c')
-rw-r--r--aio.c3
1 files changed, 3 insertions, 0 deletions
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.