apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1438959 - in /apr/apr/trunk: poll/unix/epoll.c test/testpipe.c
Date Sat, 26 Jan 2013 20:42:42 GMT
Author: sf
Date: Sat Jan 26 20:42:41 2013
New Revision: 1438959

URL: http://svn.apache.org/viewvc?rev=1438959&view=rev
Log:
Minor fixes to quiet valgrind warnings

Modified:
    apr/apr/trunk/poll/unix/epoll.c
    apr/apr/trunk/test/testpipe.c

Modified: apr/apr/trunk/poll/unix/epoll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/epoll.c?rev=1438959&r1=1438958&r2=1438959&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/epoll.c (original)
+++ apr/apr/trunk/poll/unix/epoll.c Sat Jan 26 20:42:41 2013
@@ -366,7 +366,7 @@ static apr_status_t impl_pollcb_create(a
 static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb,
                                     apr_pollfd_t *descriptor)
 {
-    struct epoll_event ev;
+    struct epoll_event ev = { 0 };
     int ret;
     
     ev.events = get_epoll_event(descriptor->reqevents);

Modified: apr/apr/trunk/test/testpipe.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testpipe.c?rev=1438959&r1=1438958&r2=1438959&view=diff
==============================================================================
--- apr/apr/trunk/test/testpipe.c (original)
+++ apr/apr/trunk/test/testpipe.c Sat Jan 26 20:42:41 2013
@@ -129,7 +129,7 @@ static void test_pipe_writefull(abts_cas
     int iterations = 1000;
     int i;
     int bytes_per_iteration = 8000;
-    char *buf = (char *)malloc(bytes_per_iteration);
+    char *buf = (char *)calloc(bytes_per_iteration, 1);
     char responsebuf[128];
     apr_size_t nbytes;
     int bytes_processed;



Mime
View raw message