windows: initialize ares handles list

We need to initialize the ares handles linked list or else bad things can happen
when we try to perform async lookups.
This commit is contained in:
Frank Denis 2012-03-01 18:22:16 -08:00 committed by Ben Noordhuis
parent 2ef5798c6f
commit 1c8cf617f9

View File

@ -59,6 +59,7 @@ static void uv_init(void) {
static void uv_loop_init(uv_loop_t* loop) {
loop->uv_ares_handles_ = NULL;
/* Create an I/O completion port */
loop->iocp = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 1);
if (loop->iocp == NULL) {