]> granicus.if.org Git - apache/commitdiff
Simplify code with ap_str_tolower()
authorStefan Fritsch <sf@apache.org>
Mon, 13 Jun 2011 19:48:09 +0000 (19:48 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 13 Jun 2011 19:48:09 +0000 (19:48 +0000)
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135252 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index f4acb79ac7efe2f7a356e89b136b29cf139106ff..981838d279615950821906dab89da03f107dfea7 100644 (file)
@@ -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;