You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2001/08/10 03:14:29 UTC
cvs commit: apache-1.3/src/main http_main.c
bnicholes 01/08/09 18:14:29
Modified: src/main http_main.c
Log:
Made sure that the variables ap_listenbacklog and ap_listeners are initialized
before they are used to avoid linker errors when using the NLMCONV utility
to build Apache for NetWare. Patch submitted by Pavel Novy.
Revision Changes Path
1.546 +2 -2 apache-1.3/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
retrieving revision 1.545
retrieving revision 1.546
diff -u -r1.545 -r1.546
--- http_main.c 2001/07/16 06:20:39 1.545
+++ http_main.c 2001/08/10 01:14:29 1.546
@@ -257,7 +257,7 @@
API_VAR_EXPORT int ap_daemons_limit=0;
time_t ap_restart_time=0;
API_VAR_EXPORT int ap_suexec_enabled = 0;
-int ap_listenbacklog;
+int ap_listenbacklog=0;
#ifdef SO_ACCEPTFILTER
int ap_acceptfilter =
#ifdef AP_ACCEPTFILTER_OFF
@@ -294,7 +294,7 @@
*
* Note that listeners != NULL is ensured by read_config().
*/
-listen_rec *ap_listeners;
+listen_rec *ap_listeners=NULL;
static listen_rec *head_listener;
API_VAR_EXPORT char ap_server_root[MAX_STRING_LEN]="";