]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Made sure that the variables ap_listenbacklog and ap_listeners are initialized
authorBradley Nicholes <bnicholes@apache.org>
Fri, 10 Aug 2001 01:14:29 +0000 (01:14 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Fri, 10 Aug 2001 01:14:29 +0000 (01:14 +0000)
before they are used to avoid linker errors when using the NLMCONV utility
to build Apache for NetWare.  Patch submitted by Pavel Novy.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90060 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_main.c

index 4f9409ddd6f88ed90929a78cf9528473ce8c45f0..3e884cda032ef89b8d791a21682636ed014753c0 100644 (file)
@@ -257,7 +257,7 @@ API_VAR_EXPORT int ap_daemons_max_free=0;
 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 @@ static int max_daemons_limit = -1;
  *
  * 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]="";