httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1754544 - /httpd/httpd/trunk/server/util.c
Date Fri, 29 Jul 2016 16:06:23 GMT
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) */



Mime
View raw message