Make valgrind happy

This commit is contained in:
Dmitry Stogov 2015-04-15 14:20:59 +03:00
parent 8144795133
commit ec077328fd

View file

@ -164,6 +164,10 @@ static int fpm_event_epoll_add(struct fpm_event_s *ev) /* {{{ */
struct epoll_event e;
/* fill epoll struct */
#if SIZEOF_SIZE_T == 4
/* Completely initialize event data to prevent valgrind reports */
e.data.u64 = 0;
#endif
e.events = EPOLLIN;
e.data.fd = ev->fd;
e.data.ptr = (void *)ev;