summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2009-06-05 01:35:29 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2009-06-05 01:35:29 +0000
commit741a8dcbf37de68995549487d76278812bc400c8 (patch)
treeec078a44a9ea55d30c9adc8a21340b57c4b0c23c /poll
parent974d0460fe5e236dbc33fcddc890a422eaac6932 (diff)
downloadlibapr-741a8dcbf37de68995549487d76278812bc400c8.tar.gz
fix crash in poll() implementation of pollcb API
(This is apparently a trunk-only bug.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@781884 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/pollcb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/poll/unix/pollcb.c b/poll/unix/pollcb.c
index 463ba57b5..9fbfbd61a 100644
--- a/poll/unix/pollcb.c
+++ b/poll/unix/pollcb.c
@@ -96,6 +96,7 @@ APR_DECLARE(apr_status_t) apr_pollcb_create_ex(apr_pollcb_t **pollcb,
}
*pollcb = apr_palloc(p, sizeof(**pollcb));
+ (*pollcb)->nelts = 0;
(*pollcb)->nalloc = size;
(*pollcb)->pool = p;
(*pollcb)->provider = provider;