提交 6698c5be 编写于 作者: P Paolo Bonzini 提交者: Stefan Hajnoczi

aio-win32: fix uninitialized use of have_select_revents

Always initialize it with the return value of aio_prepare.
Reported-by: NTeLeMan <geleman@gmail.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: NFam Zheng <famz@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
上级 d735b620
......@@ -283,9 +283,9 @@ bool aio_poll(AioContext *ctx, bool blocking)
int count;
int timeout;
if (aio_prepare(ctx)) {
have_select_revents = aio_prepare(ctx);
if (have_select_revents) {
blocking = false;
have_select_revents = true;
}
was_dispatching = ctx->dispatching;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册