]> granicus.if.org Git - apache/commitdiff
Remove some extraneous comparison operations
authorBrian Pane <brianp@apache.org>
Sat, 8 Jun 2002 06:28:16 +0000 (06:28 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 8 Jun 2002 06:28:16 +0000 (06:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95584 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_alias.c

index 09660da7f6bde1bd4cdef1c46b348dda19de69ee..6f8ab6c3f14463371ebda2adbd7961c6d32141ab 100644 (file)
@@ -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 */