]> granicus.if.org Git - apache/commitdiff
Return the correct $n result (assign the val, not the var!)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 31 Dec 2001 06:43:30 +0000 (06:43 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 31 Dec 2001 06:43:30 +0000 (06:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92682 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 2be37c0c28d7954d1fa18407426a8b6dfe18774a..d71c2283efefbdd4ebe130aa57f807ad7e48f185 100644 (file)
@@ -224,7 +224,7 @@ static const char *get_include_var(request_rec *r, include_ctx_t *ctx,
                  || (*ctx->re_result)[idx].rm_eo < 0) {
                 return NULL;
             }
-            var = apr_pstrmemdup(r->pool, ctx->re_string 
+            val = apr_pstrmemdup(r->pool, ctx->re_string 
                                         + (*ctx->re_result)[idx].rm_so, len);
         }
     }