diff options
-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 326dac7b1..25e85f018 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 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; |