apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r781884 - /apr/apr/trunk/poll/unix/pollcb.c
Date Fri, 05 Jun 2009 01:35:29 GMT
Author: trawick
Date: Fri Jun  5 01:35:29 2009
New Revision: 781884

URL: http://svn.apache.org/viewvc?rev=781884&view=rev
Log:
fix crash in poll() implementation of pollcb API

(This is apparently a trunk-only bug.)

Modified:
    apr/apr/trunk/poll/unix/pollcb.c

Modified: apr/apr/trunk/poll/unix/pollcb.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/pollcb.c?rev=781884&r1=781883&r2=781884&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/pollcb.c (original)
+++ apr/apr/trunk/poll/unix/pollcb.c Fri Jun  5 01:35:29 2009
@@ -96,6 +96,7 @@
     }
 
     *pollcb = apr_palloc(p, sizeof(**pollcb));
+    (*pollcb)->nelts = 0;
     (*pollcb)->nalloc = size;
     (*pollcb)->pool = p;
     (*pollcb)->provider = provider;



Mime
View raw message