You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2001/11/22 22:19:02 UTC

cvs commit: httpd-2.0/modules/mappers mod_alias.c

brianp      01/11/22 13:19:02

  Modified:    modules/mappers mod_alias.c
  Log:
  optimized away a strlen call in alias_matches()
  
  Revision  Changes    Path
  1.33      +1 -2      httpd-2.0/modules/mappers/mod_alias.c
  
  Index: mod_alias.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_alias.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- mod_alias.c	2001/10/26 19:39:51	1.32
  +++ mod_alias.c	2001/11/22 21:19:02	1.33
  @@ -283,10 +283,9 @@
   
   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...