From: Bradley Nicholes Date: Fri, 10 Aug 2001 01:14:29 +0000 (+0000) Subject: Made sure that the variables ap_listenbacklog and ap_listeners are initialized X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1982f82a065d1718e33a221ba447a6dd08a81fb3;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90060 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/http_main.c b/src/main/http_main.c index 4f9409ddd6f..3e884cda032 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -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]="";