You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jc...@apache.org on 2017/06/21 15:54:53 UTC
svn commit: r1799472 - /httpd/httpd/trunk/server/util.c
Author: jchampion
Date: Wed Jun 21 15:54:53 2017
New Revision: 1799472
URL: http://svn.apache.org/viewvc?rev=1799472&view=rev
Log:
util.c: revert r1799375 during veto discussion
https://lists.apache.org/thread.html/c0320136ae7e4cbbae03cb2636dfb9b693b2d7a6ffb4c9a645beadb9@%3Cdev.httpd.apache.org%3E
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=1799472&r1=1799471&r2=1799472&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Wed Jun 21 15:54:53 2017
@@ -1526,7 +1526,7 @@ AP_DECLARE(const char *) ap_parse_token_
while (!string_end) {
const unsigned char c = (unsigned char)*cur;
- if (c && !TEST_CHAR(c, T_HTTP_TOKEN_STOP)) {
+ 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) */
@@ -1600,7 +1600,7 @@ AP_DECLARE(const char *) ap_parse_token_
*/
AP_DECLARE(const char *) ap_scan_http_field_content(const char *ptr)
{
- for ( ; *ptr && !TEST_CHAR(*ptr, T_HTTP_CTRLS); ++ptr) ;
+ for ( ; !TEST_CHAR(*ptr, T_HTTP_CTRLS); ++ptr) ;
return ptr;
}
@@ -1610,7 +1610,7 @@ AP_DECLARE(const char *) ap_scan_http_fi
*/
AP_DECLARE(const char *) ap_scan_http_token(const char *ptr)
{
- for ( ; *ptr && !TEST_CHAR(*ptr, T_HTTP_TOKEN_STOP); ++ptr) ;
+ for ( ; !TEST_CHAR(*ptr, T_HTTP_TOKEN_STOP); ++ptr) ;
return ptr;
}
@@ -1620,7 +1620,7 @@ AP_DECLARE(const char *) ap_scan_http_to
*/
AP_DECLARE(const char *) ap_scan_vchar_obstext(const char *ptr)
{
- for ( ; *ptr && TEST_CHAR(*ptr, T_VCHAR_OBSTEXT); ++ptr) ;
+ for ( ; TEST_CHAR(*ptr, T_VCHAR_OBSTEXT); ++ptr) ;
return ptr;
}