sim-card
/
qemu
Archived
10
0
Fork 0

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
This commit is contained in:
aliguori 2008-10-12 21:19:57 +00:00
parent bb7e729397
commit f71903d020
1 changed files with 3 additions and 0 deletions

3
aio.c
View File

@ -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.