diff options
author | Stefan Fritsch <sf@apache.org> | 2013-01-26 20:42:41 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2013-01-26 20:42:41 +0000 |
commit | 55971642ad861e6fa2b31bc1b11bb5dff11092ef (patch) | |
tree | 3733165a6057a5782cd9fb3eff08159cef92cc0b | |
parent | 0b4a33889441f9b04f6d0344be80b60b2f4465b9 (diff) | |
download | apr-55971642ad861e6fa2b31bc1b11bb5dff11092ef.tar.gz |
Minor fixes to quiet valgrind warnings
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1438959 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 8013ead93..965e2833c 100644 --- a/poll/unix/epoll.c +++ b/poll/unix/epoll.c @@ -366,7 +366,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 26d9a8976..d15eacf0a 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; |