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) */
*/
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;
}
*/
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;
}
*/
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;
}