Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: initialize ares handles list
Browse files Browse the repository at this point in the history
We need to initialize the ares handles linked list or else bad things can happen
when we try to perform async lookups.
  • Loading branch information
jedisct1 authored and bnoordhuis committed Mar 8, 2012
1 parent 2ef5798 commit 1c8cf61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/win/core.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c8cf61

Please sign in to comment.