]> granicus.if.org Git - apache/commitdiff
in struct backrefinfo: remove nsub member which is never read,
authorStefan Fritsch <sf@apache.org>
Wed, 29 Dec 2010 21:22:33 +0000 (21:22 +0000)
committerStefan Fritsch <sf@apache.org>
Wed, 29 Dec 2010 21:22:33 +0000 (21:22 +0000)
make source member const

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1053742 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index 2571e2ca840ed8743cc5e6d4595747cc6da28f30..9a784e1ceff5dccd089ee1ba9b87a3afd4124267 100644 (file)
@@ -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(rewriterule_entry *p, rewrite_ctx *ctx)
     }
     else {
         ctx->briRR.source = apr_pstrdup(r->pool, ctx->uri);
-        ctx->briRR.nsub   = p->regexp->re_nsub;
         memcpy(ctx->briRR.regmatch, regmatch, sizeof(regmatch));
     }