From e5e3ac566810c0be487cebd64926cb2442863eca Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 29 Jul 2016 16:06:23 +0000 Subject: [PATCH] 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 --- server/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) */ -- 2.47.3