]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed coredump in squid_error_entry() on Config.errHtmlText.
authorwessels <>
Tue, 20 Aug 1996 21:43:41 +0000 (21:43 +0000)
committerwessels <>
Tue, 20 Aug 1996 21:43:41 +0000 (21:43 +0000)
src/cache_cf.cc

index 15fb22ceabc9032ed79505566dbe782deef95734..79e56fa0dfca557ba781c5ca936a0cb245b54679 100644 (file)
@@ -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) {