apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@apache.org>
Subject [PATCH] fix a bogus warning in poll.c
Date Sat, 10 Aug 2002 03:06:27 GMT
The warning is simply because gcc can't follow conditionals, but
this should be a safe fix if nobody minds.

....Roy

Index: poll.c
===================================================================
RCS file: /home/cvs/apr/poll/unix/poll.c,v
retrieving revision 1.28
diff -u -r1.28 poll.c
--- poll.c      7 Aug 2002 00:06:12 -0000       1.28
+++ poll.c      10 Aug 2002 03:03:13 -0000
@@ -212,7 +212,7 @@
      FD_ZERO(&exceptset);

      for (i = 0; i < num; i++) {
-        apr_os_sock_t fd;
+        apr_os_sock_t fd = 0;

          if (aprset[i].desc_type == APR_POLL_SOCKET) {
  #ifdef NETWARE


Mime
View raw message