Zeroed wev

This commit is contained in:
Tatsuhiro Tsujikawa 2012-06-06 02:30:20 +09:00
parent 71a3a70c02
commit 117a39d35b
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ int ListenHandler::accept_connection(evutil_socket_t fd,
size_t idx = worker_round_robin_cnt_ % num_worker_;
++worker_round_robin_cnt_;
WorkerEvent wev;
memset(&wev, 0, sizeof(wev));
wev.client_fd = fd;
memcpy(&wev.client_addr, addr, addrlen);
wev.client_addrlen = addrlen;