From: hno <> Date: Sat, 27 Apr 2002 14:47:43 +0000 (+0000) Subject: bugfix: Initialize pendingfds to zero X-Git-Tag: SQUID_3_0_PRE1~1033 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e97b72be805eb309192bfaf5386cf3a2633b1a1d;p=thirdparty%2Fsquid.git bugfix: Initialize pendingfds to zero --- diff --git a/src/comm_select.cc b/src/comm_select.cc index e369a6a924..07488d06cc 100644 --- a/src/comm_select.cc +++ b/src/comm_select.cc @@ -1,6 +1,6 @@ /* - * $Id: comm_select.cc,v 1.55 2002/04/13 23:07:49 hno Exp $ + * $Id: comm_select.cc,v 1.56 2002/04/27 08:47:43 hno Exp $ * * DEBUG: section 5 Socket Functions * @@ -368,6 +368,7 @@ comm_select(int msec) howmany(maxfd, FD_MASK_BITS) * FD_MASK_BYTES); /* remove stalled FDs, and deal with pending descriptors */ pending = 0; + FD_ZERO(&pendingfds); maxindex = howmany(maxfd, FD_MASK_BITS); fdsp = (fd_mask *) & readfds; for (j = 0; j < maxindex; j++) {