httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Wed, 27 Aug 2003 15:35:14 GMT
nd          2003/08/27 08:35:14

  Modified:    modules/filters mod_include.c
  Log:
  minor optimization.
  
  Revision  Changes    Path
  1.275     +4 -5      httpd-2.0/modules/filters/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
  retrieving revision 1.274
  retrieving revision 1.275
  diff -u -r1.274 -r1.275
  --- mod_include.c	27 Aug 2003 14:04:51 -0000	1.274
  +++ mod_include.c	27 Aug 2003 15:35:13 -0000	1.275
  @@ -1329,13 +1329,10 @@
               break;
   
           case TOKEN_RBRACE:
  -            while (current) {
  -                if (current->token.type == TOKEN_LBRACE) {
  -                    TYPE_TOKEN(&current->token, TOKEN_GROUP);
  -                    break;
  -                }
  +            while (current && current->token.type != TOKEN_LBRACE) {
                   current = current->parent;
               }
  +
               if (!current) {
                   ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                                 "Unmatched ')' in \"%s\" in file %s",
  @@ -1343,6 +1340,8 @@
                   *was_error = 1;
                   return retval;
               }
  +
  +            TYPE_TOKEN(&current->token, TOKEN_GROUP);
               break;
   
           case TOKEN_NOT:
  
  
  

Mime
View raw message