# HG changeset patch # User Igor Sysoev # Date 1161005392 0 # Node ID 5a164305b960d67ca44d92cffda2c7b1b3e55cc8 # Parent 47e2296f9897db7cd46700195703acd3dc632574 fix building by Debian gcc-4.1.2 amd64 diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c --- a/src/http/modules/ngx_http_ssi_filter_module.c +++ b/src/http/modules/ngx_http_ssi_filter_module.c @@ -1843,7 +1843,7 @@ ngx_http_ssi_include(ngx_http_request_t ngx_str_t *uri, *file, *wait, *set, *stub, args; ngx_buf_t *b; ngx_uint_t flags, i; - ngx_chain_t *cl, *tl, **ll; + ngx_chain_t *cl, *tl, **ll, *out; ngx_http_request_t *sr; ngx_http_ssi_var_t *var; ngx_http_ssi_ctx_t *mctx; @@ -1947,7 +1947,7 @@ ngx_http_ssi_include(ngx_http_request_t if (bl[i].count++) { - ll = (ngx_chain_t **) &psr->data; + ll = &out; for (tl = bl[i].bufs; tl; tl = tl->next) { @@ -1979,6 +1979,8 @@ ngx_http_ssi_include(ngx_http_request_t ll = &cl->next; } + psr->data = out; + } else { psr->data = bl[i].bufs; }