Diff
Not logged in

Differences From:

File src/cgi.c part of check-in [22cb1e1be2] - Here is a better fix for ticket c62fac40af suggested by Kees Nuyt. by drh on 2008-11-20 00:35:23. [view]

To:

File src/cgi.c part of check-in [cd965de682] - Fix some compiler warnings. by drh on 2009-01-24 10:44:43. [view]

@@ -1188,9 +1188,9 @@
 #ifdef __MINGW32__
   /* Use win32_http_server() instead */
   exit(1);
 #else
-  int listener;                /* The server socket */
+  int listener = -1;           /* The server socket */
   int connection;              /* A socket for each individual connection */
   fd_set readfds;              /* Set of file descriptors for select() */
   size_t lenaddr;              /* Length of the inaddr structure */
   int child;                   /* PID of the child process */