qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5470] Make sure to initialize fd_sets in aio.c
@ 2008-10-12 21:19 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-10-12 21:19 UTC (permalink / raw)
  To: qemu-devel

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 <aliguori@us.ibm.com>

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-12 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-12 21:19 [Qemu-devel] [5470] Make sure to initialize fd_sets in aio.c Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).