From 409e5bf47fbb7370b026c231ddb27dbb04122ebf Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Mon, 13 Jun 2011 19:48:09 +0000 Subject: [PATCH] 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 --- modules/filters/mod_include.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index f4acb79ac7..981838d279 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; -- 2.49.0