You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by pq...@apache.org on 2006/04/05 20:26:34 UTC
svn commit: r391696 - /apr/apr/trunk/poll/unix/epoll.c
Author: pquerna
Date: Wed Apr 5 11:26:31 2006
New Revision: 391696
URL: http://svn.apache.org/viewcvs?rev=391696&view=rev
Log:
Zero out the epoll_event structure, to make valgrind stop complaining about an unitialized read.
Noticed by: Davi Arnaut <davi.arnaut gmail.com>
Modified:
apr/apr/trunk/poll/unix/epoll.c
Modified: apr/apr/trunk/poll/unix/epoll.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/poll/unix/epoll.c?rev=391696&r1=391695&r2=391696&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/epoll.c (original)
+++ apr/apr/trunk/poll/unix/epoll.c Wed Apr 5 11:26:31 2006
@@ -140,7 +140,7 @@
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;