diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2016-08-10 15:14:14 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2016-08-10 15:14:14 +0000 |
commit | 0a4f29bb66e26f52abccf82c2e869725fd121a58 (patch) | |
tree | 4490f1b1a4e401a8661ba0ac44ed972acc8fc1fa | |
parent | 0427e138edcbbd2f77bc9aa51f2d3c88190fa6bd (diff) | |
download | libapr-0a4f29bb66e26f52abccf82c2e869725fd121a58.tar.gz |
Merge r1438959 from trunk:
Minor fixes to quiet valgrind warnings
Submitted by: sf
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1755767 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | poll/unix/epoll.c | 2 | ||||
-rw-r--r-- | test/testpipe.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/poll/unix/epoll.c b/poll/unix/epoll.c index fe006db01..535f99bb1 100644 --- a/poll/unix/epoll.c +++ b/poll/unix/epoll.c @@ -385,7 +385,7 @@ static apr_status_t impl_pollcb_create(apr_pollcb_t *pollcb, 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); diff --git a/test/testpipe.c b/test/testpipe.c index a89d3d831..4bf5e68b8 100644 --- a/test/testpipe.c +++ b/test/testpipe.c @@ -129,7 +129,7 @@ static void test_pipe_writefull(abts_case *tc, void *data) 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; |