httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1053742 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
Date Wed, 29 Dec 2010 21:22:33 GMT
Author: sf
Date: Wed Dec 29 21:22:33 2010
New Revision: 1053742

URL: http://svn.apache.org/viewvc?rev=1053742&view=rev
Log:
in struct backrefinfo: remove nsub member which is never read,
make source member const

Modified:
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=1053742&r1=1053741&r2=1053742&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Wed Dec 29 21:22:33 2010
@@ -350,8 +350,7 @@ typedef struct {
  * substitution of backreferences
  */
 typedef struct backrefinfo {
-    char *source;
-    int nsub;
+    const char *source;
     ap_regmatch_t regmatch[AP_MAX_REG_MATCH];
 } backrefinfo;
 
@@ -3807,7 +3806,6 @@ test_str_l:
         /* update briRC backref info */
         if (rc && !(p->flags & CONDFLAG_NOTMATCH)) {
             ctx->briRC.source = input;
-            ctx->briRC.nsub   = p->regexp->re_nsub;
             memcpy(ctx->briRC.regmatch, regmatch, sizeof(regmatch));
         }
         break;
@@ -3928,7 +3926,6 @@ static int apply_rewrite_rule(rewriterul
     }
     else {
         ctx->briRR.source = apr_pstrdup(r->pool, ctx->uri);
-        ctx->briRR.nsub   = p->regexp->re_nsub;
         memcpy(ctx->briRR.regmatch, regmatch, sizeof(regmatch));
     }
 



Mime
View raw message