From: Brian Pane Date: Thu, 22 Nov 2001 21:19:02 +0000 (+0000) Subject: optimized away a strlen call in alias_matches() X-Git-Tag: 2.0.29~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=077ac3eb39eecdfcae6f3546852214b2b9ca6e21;p=apache 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 --- 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...