From: Henrik Nordstrom Date: Mon, 31 Mar 2008 23:39:06 +0000 (+0200) Subject: Simplify HTTP header list parsing a bit after the changes for Bug #420. X-Git-Tag: BASIC_TPROXY4~4^2~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bd6a3142d4e9546c160744a73b8805e35f9695e;p=thirdparty%2Fsquid.git Simplify HTTP header list parsing a bit after the changes for Bug #420. --- diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index aa5e5fa3b0..e9f3b3f614 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -257,12 +257,7 @@ strListGetItem(const String * str, char del, const char **item, int *ilen, const delim[0][1] = del; delim[2][1] = del; - if (*pos) { - if (!**pos) /* end of string */ - return 0; - else - (*pos)++; - } else { + if (!*pos) { *pos = str->buf(); if (!*pos)