You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2016/07/29 16:06:23 UTC

svn commit: r1754544 - /httpd/httpd/trunk/server/util.c

Author: wrowe
Date: Fri Jul 29 16:06:23 2016
New Revision: 1754544

URL: http://svn.apache.org/viewvc?rev=1754544&view=rev
Log:
With NUL as a TOKEN_STOP, this code is more efficient

Modified:
    httpd/httpd/trunk/server/util.c

Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1754544&r1=1754543&r2=1754544&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Fri Jul 29 16:06:23 2016
@@ -1526,7 +1526,7 @@ AP_DECLARE(const char *) ap_parse_token_
     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) */