]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add assertion
authorwessels <>
Fri, 21 Nov 1997 00:46:42 +0000 (00:46 +0000)
committerwessels <>
Fri, 21 Nov 1997 00:46:42 +0000 (00:46 +0000)
src/errorpage.cc

index c0dd929b2c1530167942ef6ccb5f6f4e83d954b4..44af1a2365d04aad0bcf6da3117bbdbbe6b1ec9c 100644 (file)
@@ -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 = "<NULL>";
+    assert(p != NULL);
     debug(4, 3) ("errorConvert: %%%c --> '%s'\n", token, p);
     return p;
 }