handle_established_connection(): Remove pointless increments of n
authorFabian Keil <fk@fabiankeil.de>
Fri, 28 Feb 2020 12:12:38 +0000 (13:12 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 1 Mar 2020 10:06:32 +0000 (11:06 +0100)
Fixes CID267170 "Uninitialized scalar variable".

Sponsored by: Robert Klemme

jcc.c

diff --git a/jcc.c b/jcc.c
index 2870100..28e797b 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -2621,7 +2621,6 @@ static void handle_established_connection(struct client_state *csp)
 #else
             FD_SET(csp->cfd, &rfds);
 #endif
-            n++;
          }
 
          if (read_ssl_server)
@@ -2632,7 +2631,6 @@ static void handle_established_connection(struct client_state *csp)
 #else
             FD_SET(csp->server_connection.sfd, &rfds);
 #endif
-            n++;
          }
       }
 #endif