diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2006-10-16 13:29:52 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-16 13:29:52 +0000 |
| commit | cab3b30e2cef12433a038db9de029666f6d196d1 (patch) | |
| tree | 4ac47e31e4a84658f35cd02e66032ddfad5276e2 | |
| parent | 066496a56c13fde1f087d90d4b67208f57895a04 (diff) | |
| download | nginx-cab3b30e2cef12433a038db9de029666f6d196d1.tar.gz nginx-cab3b30e2cef12433a038db9de029666f6d196d1.tar.bz2 | |
fix building by Debian gcc-4.1.2 amd64
Diffstat (limited to '')
| -rw-r--r-- | src/http/modules/ngx_http_ssi_filter_module.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index 945a4e5e5..d61b125a2 100644 --- 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 *r, ngx_http_ssi_ctx_t *ctx, 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 *r, ngx_http_ssi_ctx_t *ctx, 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 *r, ngx_http_ssi_ctx_t *ctx, ll = &cl->next; } + psr->data = out; + } else { psr->data = bl[i].bufs; } |
