From: wessels <> Date: Fri, 21 Nov 1997 00:46:42 +0000 (+0000) Subject: add assertion X-Git-Tag: SQUID_3_0_PRE1~4510 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e6aef510aaf39175b0f7bd2c90bfd9e1209a4c4;p=thirdparty%2Fsquid.git add assertion --- diff --git a/src/errorpage.cc b/src/errorpage.cc index c0dd929b2c..44af1a2365 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.102 1997/11/20 06:25:26 wessels Exp $ + * $Id: errorpage.cc,v 1.103 1997/11/20 17:46:42 wessels Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -295,8 +295,7 @@ errorConvert(char token, ErrorState * err) p = "%UNKNOWN%"; break; } - if (p == NULL) - p = ""; + assert(p != NULL); debug(4, 3) ("errorConvert: %%%c --> '%s'\n", token, p); return p; }