]> granicus.if.org Git - apache/commitdiff
optimized away a strlen call in alias_matches()
authorBrian Pane <brianp@apache.org>
Thu, 22 Nov 2001 21:19:02 +0000 (21:19 +0000)
committerBrian Pane <brianp@apache.org>
Thu, 22 Nov 2001 21:19:02 +0000 (21:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92138 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_alias.c

index 314a387b52c3027e553b8e2c210a8db857167bd6..7a3719bde25cd6d4f73d7b6ca936735f5cc0d480 100644 (file)
@@ -283,10 +283,9 @@ static const command_rec alias_cmds[] =
 
 static int alias_matches(const char *uri, const char *alias_fakename)
 {
-    const char *end_fakename = alias_fakename + strlen(alias_fakename);
     const char *aliasp = alias_fakename, *urip = uri;
 
-    while (aliasp < end_fakename) {
+    while (*aliasp) {
        if (*aliasp == '/') {
            /* any number of '/' in the alias matches any number in
             * the supplied URI, but there must be at least one...