diff --git a/epoll.c b/epoll.c index 91f0544b99..2d07ff6231 100644 --- a/epoll.c +++ b/epoll.c @@ -182,6 +182,7 @@ epoll_init(struct event_base *base) fd = epollop->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK|TFD_CLOEXEC); if (epollop->timerfd >= 0) { struct epoll_event epev; + memset(&epev, 0, sizeof(epev)); epev.data.fd = epollop->timerfd; epev.events = EPOLLIN; if (epoll_ctl(epollop->epfd, EPOLL_CTL_ADD, fd, &epev) < 0) {