]> granicus.if.org Git - apache/commitdiff
With NUL as a TOKEN_STOP, this code is more efficient
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 29 Jul 2016 16:06:23 +0000 (16:06 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 29 Jul 2016 16:06:23 +0000 (16:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754544 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 470f6c343b4c7b941a2fa13242fc95e8ba3bc39d..9fb31e4562b036c2036eae631faaf4f99a2fe4e6 100644 (file)
@@ -1526,7 +1526,7 @@ AP_DECLARE(const char *) ap_parse_token_list_strict(apr_pool_t *p,
     while (!string_end) {
         const unsigned char c = (unsigned char)*cur;
 
-        if (!TEST_CHAR(c, T_HTTP_TOKEN_STOP) && c != '\0') {
+        if (!TEST_CHAR(c, T_HTTP_TOKEN_STOP)) {
             /* Non-separator character; we are finished with leading
              * whitespace. We must never have encountered any trailing
              * whitespace before the delimiter (comma) */