From: William A. Rowe Jr Date: Fri, 29 Jul 2016 16:06:23 +0000 (+0000) Subject: With NUL as a TOKEN_STOP, this code is more efficient X-Git-Tag: 2.5.0-alpha~1360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e3ac566810c0be487cebd64926cb2442863eca;p=thirdparty%2Fapache%2Fhttpd.git With NUL as a TOKEN_STOP, this code is more efficient git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754544 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 470f6c343b4..9fb31e4562b 100644 --- a/server/util.c +++ b/server/util.c @@ -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) */