From: William A. Rowe Jr Date: Tue, 22 Nov 2016 18:43:28 +0000 (+0000) Subject: Optimize away one more strchr X-Git-Tag: 2.5.0-alpha~983 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e501bbb12b6d2299f2336e6e839a968570e97a3;p=thirdparty%2Fapache%2Fhttpd.git Optimize away one more strchr git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1770869 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 5a6981b7800..c5fa8cf8562 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -743,8 +743,7 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) } else { for ( ; apr_isspace(*ll); ++ll) - if (ap_strchr_c("\t\n\v\f\r", *ll) - && deferred_error == rrl_none) + if (*ll != ' ' && deferred_error == rrl_none) deferred_error = rrl_badwhitespace; if (*ll && deferred_error == rrl_none) deferred_error = rrl_trailingtext;