[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5470] Make sure to initialize fd_sets in aio.c
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [5470] Make sure to initialize fd_sets in aio.c |
Date: |
Sun, 12 Oct 2008 21:19:58 +0000 |
Revision: 5470
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5470
Author: aliguori
Date: 2008-10-12 21:19:57 +0000 (Sun, 12 Oct 2008)
Log Message:
-----------
Make sure to initialize fd_sets in aio.c
This was spotted by valgrind.
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/aio.c
Modified: trunk/aio.c
===================================================================
--- trunk/aio.c 2008-10-12 20:16:03 UTC (rev 5469)
+++ trunk/aio.c 2008-10-12 21:19:57 UTC (rev 5470)
@@ -126,6 +126,9 @@
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5470] Make sure to initialize fd_sets in aio.c,
Anthony Liguori <=