aio-win32: fix uninitialized use of have_select_revents
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Sep 2014 10:08:49 +0000 (12:08 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Sep 2014 10:38:50 +0000 (11:38 +0100)
commit6698c5bed290f3852c9f200d197b5d99211bc3cd
tree8babc2a6dfbb58a128eacab91ad5a24567b50825
parentd735b620b58f2fdfddc8e641e9feac3c9671a49d
aio-win32: fix uninitialized use of have_select_revents

Always initialize it with the return value of aio_prepare.

Reported-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
aio-win32.c