]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make string handle append(NULL) gracefully instead of core dumping.
authoramosjeffries <>
Sat, 19 May 2007 12:31:00 +0000 (12:31 +0000)
committeramosjeffries <>
Sat, 19 May 2007 12:31:00 +0000 (12:31 +0000)
src/SqString.cc

index cf55a32c2216065d9de2321cc86bb0bfb13addf1..120284252809dca8d824b35d5b0a3a4105ff86f0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: SqString.cc,v 1.2 2007/05/18 16:56:18 amosjeffries Exp $
+ * $Id: SqString.cc,v 1.3 2007/05/19 06:31:00 amosjeffries Exp $
  *
  * DEBUG: section 67    String
  * AUTHOR: Duane Wessels
@@ -215,7 +215,7 @@ SqString::append(const char *str, int len)
 void
 SqString::append(char const *str)
 {
-    assert (str);
+    if(!str) return;
     append (str, strlen(str));
 }