File 10812.patch of Package squid-beta

---------------------
PatchSet 10812 
Date: 2007/05/19 06:31:00
Author: amosjeffries
Branch: HEAD
Tag: (none) 
Log:
Make string handle append(NULL) gracefully instead of core dumping.

Members: 
	src/SqString.cc:1.2->1.3 

Index: squid3/src/SqString.cc
===================================================================
RCS file: /cvsroot/squid/squid3/src/SqString.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- squid3/src/SqString.cc	18 May 2007 16:56:18 -0000	1.2
+++ squid3/src/SqString.cc	19 May 2007 06:31:00 -0000	1.3
@@ -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 @@
 void
 SqString::append(char const *str)
 {
-    assert (str);
+    if(!str) return;
     append (str, strlen(str));
 }