mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make valgrind happy
This commit is contained in:
parent
8144795133
commit
ec077328fd
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue