Commit f71903d020667ae704cf803d0cd64f80c879c6d0
1 parent
bb7e7293
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
Showing
1 changed file
with
3 additions
and
0 deletions
aio.c
... | ... | @@ -126,6 +126,9 @@ void qemu_aio_wait(void) |
126 | 126 | |
127 | 127 | walking_handlers = 1; |
128 | 128 | |
129 | + FD_ZERO(&rdfds); | |
130 | + FD_ZERO(&wrfds); | |
131 | + | |
129 | 132 | /* fill fd sets */ |
130 | 133 | LIST_FOREACH(node, &aio_handlers, node) { |
131 | 134 | /* If there aren't pending AIO operations, don't invoke callbacks. | ... | ... |