]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: epoll: always initialize all of epoll_event to please valgrind
authorWilly Tarreau <w@1wt.eu>
Wed, 26 Feb 2020 13:32:53 +0000 (14:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Feb 2020 13:36:27 +0000 (14:36 +0100)
commit55c5399846a55af036ed2e67c08484cc76c0d1c2
treef5165deb207bc31d0280302c2559271d0ca6f5ba
parentc1563e5474b979bbde59464fa67a927603f112b7
MINOR: epoll: always initialize all of epoll_event to please valgrind

valgrind complains that epoll_ctl() uses an epoll_event in which we
have only set the part we use from the data field (i.e. the fd). Tests
show that pre-initializing the struct in the stack doesn't have a
measurable impact so let's do it.
src/ev_epoll.c