From f89ace7a3d62c4639ef5527eda8ad3c2d721c0dc Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 13 Feb 2016 10:10:00 +1100 Subject: [PATCH] Silence uninitialised byte warnings in valgrind --- src/libckpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libckpool.c b/src/libckpool.c index 25593c08..e14ffae4 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -971,7 +971,7 @@ int wait_close(int sockd, int timeout) /* Emulate a select read wait for high fds that select doesn't support. */ int wait_read_select(int sockd, float timeout) { - struct epoll_event event; + struct epoll_event event = {0, {NULL}}; int epfd, ret; epfd = epoll_create1(EPOLL_CLOEXEC); @@ -1053,7 +1053,7 @@ out: /* Emulate a select write wait for high fds that select doesn't support */ int wait_write_select(int sockd, float timeout) { - struct epoll_event event; + struct epoll_event event = {0, {NULL}}; int epfd, ret; epfd = epoll_create1(EPOLL_CLOEXEC);