From: Stefan Fritsch Date: Mon, 13 Jun 2011 19:48:09 +0000 (+0000) Subject: Simplify code with ap_str_tolower() X-Git-Tag: 2.3.13~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409e5bf47fbb7370b026c231ddb27dbb04122ebf;p=thirdparty%2Fapache%2Fhttpd.git Simplify code with ap_str_tolower() Submitted by: Christophe JAILLET git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135252 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index f4acb79ac7e..981838d2796 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -3227,13 +3227,7 @@ static apr_size_t find_argument(include_ctx_t *ctx, const char *data, ctx->r->filename); } else { - char *sp = intern->current_arg->name; - - /* normalize the name */ - while (*sp) { - *sp = apr_tolower(*sp); - ++sp; - } + ap_str_tolower(intern->current_arg->name); } intern->state = PARSE_ARG_EQ;