From: amosjeffries <> Date: Sat, 19 May 2007 12:31:00 +0000 (+0000) Subject: Make string handle append(NULL) gracefully instead of core dumping. X-Git-Tag: SQUID_3_0_PRE7~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e4a2812aebc73618951a9e041feb9568ac9e222;p=thirdparty%2Fsquid.git Make string handle append(NULL) gracefully instead of core dumping. --- diff --git a/src/SqString.cc b/src/SqString.cc index cf55a32c22..1202842528 100644 --- a/src/SqString.cc +++ b/src/SqString.cc @@ -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)); }