From 077ac3eb39eecdfcae6f3546852214b2b9ca6e21 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Thu, 22 Nov 2001 21:19:02 +0000 Subject: [PATCH] optimized away a strlen call in alias_matches() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92138 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_alias.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/mappers/mod_alias.c b/modules/mappers/mod_alias.c index 314a387b52..7a3719bde2 100644 --- a/modules/mappers/mod_alias.c +++ b/modules/mappers/mod_alias.c @@ -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... -- 2.40.0