From d90bcd9aa1670b1307b606c9dfc3153a64e7471a Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Sat, 8 Jun 2002 06:28:16 +0000 Subject: [PATCH] Remove some extraneous comparison operations git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95584 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_alias.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.40.0