From 733c8d13d7c247245209f9fe54134f35051d3e88 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 9 Dec 2011 15:54:43 -0800 Subject: [PATCH] dpif-linux: Avoid valgrind warning in epoll_ctl() call. Valgrind points out correctly that there are uninitialized bytes in the 'event' structure. That's OK, but it doesn't hurt to suppress the warning by zeroing all of the bytes. This doesn't fix a real bug. Signed-off-by: Ben Pfaff --- lib/dpif-linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 1f6c2c02..317274e3 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -1026,6 +1026,7 @@ dpif_linux_recv_set_mask(struct dpif *dpif_, int listen_mask) return error; } + memset(&event, 0, sizeof event); event.events = EPOLLIN; event.data.u32 = i; if (epoll_ctl(dpif->epoll_fd, EPOLL_CTL_ADD, -- 2.30.2