From: wessels <> Date: Tue, 20 Aug 1996 21:43:41 +0000 (+0000) Subject: Fixed coredump in squid_error_entry() on Config.errHtmlText. X-Git-Tag: SQUID_3_0_PRE1~5951 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb2d04cde5aeedd948afcf5316e9b99245efb220;p=thirdparty%2Fsquid.git Fixed coredump in squid_error_entry() on Config.errHtmlText. --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 15fb22ceab..79e56fa0df 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,5 +1,5 @@ /* - * $Id: cache_cf.cc,v 1.68 1996/08/19 22:44:50 wessels Exp $ + * $Id: cache_cf.cc,v 1.69 1996/08/20 15:43:41 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -1440,6 +1440,8 @@ static void configDoConfigure() httpd_accel_mode = Config.Accel.prefix ? 1 : 0; sprintf(ForwardedBy, "Forwarded: by http://%s:%d/", getMyHostname(), Config.Port.http); + if (Config.errHtmlText == NULL) + Config.errHtmlText = xstrdup(""); #if !ALLOW_HOT_CACHE if (!httpd_accel_mode || Config.Accel.withProxy) {