diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-05 01:35:29 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-05 01:35:29 +0000 |
commit | 741a8dcbf37de68995549487d76278812bc400c8 (patch) | |
tree | ec078a44a9ea55d30c9adc8a21340b57c4b0c23c /poll | |
parent | 974d0460fe5e236dbc33fcddc890a422eaac6932 (diff) | |
download | libapr-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.c | 1 |
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; |