]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Simplify HTTP header list parsing a bit after the changes for Bug #420.
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 31 Mar 2008 23:39:06 +0000 (01:39 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 31 Mar 2008 23:39:06 +0000 (01:39 +0200)
src/HttpHeaderTools.cc

index aa5e5fa3b0aa2bf30bc72cbf10d7d5183d52e463..e9f3b3f6145ea8873c88281482edb8f8e2e699b9 100644 (file)
@@ -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)