From: William A. Rowe Jr Date: Mon, 31 Dec 2001 06:43:30 +0000 (+0000) Subject: Return the correct $n result (assign the val, not the var!) X-Git-Tag: 2.0.30~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bba58f292f4290fc344edfdf91c940c390b10024;p=thirdparty%2Fapache%2Fhttpd.git Return the correct $n result (assign the val, not the var!) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92682 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 2be37c0c28d..d71c2283efe 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -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); } }