httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1135252 - /httpd/httpd/trunk/modules/filters/mod_include.c
Date Mon, 13 Jun 2011 19:48:10 GMT
Author: sf
Date: Mon Jun 13 19:48:09 2011
New Revision: 1135252

URL: http://svn.apache.org/viewvc?rev=1135252&view=rev
Log:
Simplify code with ap_str_tolower()

Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>

Modified:
    httpd/httpd/trunk/modules/filters/mod_include.c

Modified: httpd/httpd/trunk/modules/filters/mod_include.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_include.c?rev=1135252&r1=1135251&r2=1135252&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_include.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_include.c Mon Jun 13 19:48:09 2011
@@ -3227,13 +3227,7 @@ static apr_size_t find_argument(include_
                                          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;



Mime
View raw message