apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r391696 - /apr/apr/trunk/poll/unix/epoll.c
Date Wed, 05 Apr 2006 18:26:34 GMT
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;



Mime
View raw message