From: Brian Pane Date: Sat, 8 Jun 2002 06:28:16 +0000 (+0000) Subject: Remove some extraneous comparison operations X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a28ca100a8ea7b047aa2e0e42e3b88f9afe27197;p=apache Remove some extraneous comparison operations git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95584 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_alias.c b/modules/mappers/mod_alias.c index 09660da7f6..6f8ab6c3f1 100644 --- a/modules/mappers/mod_alias.c +++ b/modules/mappers/mod_alias.c @@ -297,10 +297,12 @@ static int alias_matches(const char *uri, const char *alias_fakename) if (*urip != '/') return 0; - while (*aliasp == '/') + do { ++aliasp; - while (*urip == '/') + } while (*aliasp == '/'); + do { ++urip; + } while (*urip == '/'); } else { /* Other characters are compared literally */