summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorPaul Querna <pquerna@apache.org>2006-04-05 18:26:31 +0000
committerPaul Querna <pquerna@apache.org>2006-04-05 18:26:31 +0000
commit30725226af97a0451657ab9c88fef06ea289c6b9 (patch)
treec43cdf9edb40f88605ce5fbc2ce08ede41356658 /poll
parent680e10d00c2c0606d0253f89942cb388ffe9a630 (diff)
downloadapr-30725226af97a0451657ab9c88fef06ea289c6b9.tar.gz
Zero out the epoll_event structure, to make valgrind stop complaining about an unitialized read.
Noticed by: Davi Arnaut <davi.arnaut gmail.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@391696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll/unix/epoll.c b/poll/unix/epoll.c
index 8f921776c..468b23ac7 100644
--- a/poll/unix/epoll.c
+++ b/poll/unix/epoll.c
@@ -140,7 +140,7 @@ APR_DECLARE(apr_status_t) apr_pollset_destroy(apr_pollset_t *pollset)
APR_DECLARE(apr_status_t) apr_pollset_add(apr_pollset_t *pollset,
const apr_pollfd_t *descriptor)
{
- struct epoll_event ev;
+ struct epoll_event ev = {0};
int ret = -1;
pfd_elem_t *elem = NULL;
apr_status_t rv = APR_SUCCESS;