From: wessels <> Date: Thu, 28 May 1998 11:12:42 +0000 (+0000) Subject: unportable initialization X-Git-Tag: SQUID_3_0_PRE1~3231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f235385f81a9cc7c94525ee8c62e3f4f4c95103;p=thirdparty%2Fsquid.git unportable initialization --- diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index 23db8abb66..a0c60611a7 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -1,5 +1,5 @@ /* - * $Id: HttpHeaderTools.cc,v 1.14 1998/05/27 22:51:42 rousskov Exp $ + * $Id: HttpHeaderTools.cc,v 1.15 1998/05/28 05:12:42 wessels Exp $ * * DEBUG: section 66 HTTP Header Tools * AUTHOR: Alex Rousskov @@ -204,7 +204,10 @@ strListAdd(String * str, const char *item, char del) { assert(str && item); if (strLen(*str)) { - char buf[3] = { del, ' ', '\0' }; + char buf[3]; + buf[0] = del; + buf[1] = ' '; + buf[2] = '\0'; stringAppend(str, buf, 2); } stringAppend(str, item, strlen(item));