Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 784:5a164305b960
fix building by Debian gcc-4.1.2 amd64
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 16 Oct 2006 13:29:52 +0000 |
parents | 4ab852b691f5 |
children | b310630d129e |
comparison
equal
deleted
inserted
replaced
783:47e2296f9897 | 784:5a164305b960 |
---|---|
1841 { | 1841 { |
1842 ngx_int_t rc, key; | 1842 ngx_int_t rc, key; |
1843 ngx_str_t *uri, *file, *wait, *set, *stub, args; | 1843 ngx_str_t *uri, *file, *wait, *set, *stub, args; |
1844 ngx_buf_t *b; | 1844 ngx_buf_t *b; |
1845 ngx_uint_t flags, i; | 1845 ngx_uint_t flags, i; |
1846 ngx_chain_t *cl, *tl, **ll; | 1846 ngx_chain_t *cl, *tl, **ll, *out; |
1847 ngx_http_request_t *sr; | 1847 ngx_http_request_t *sr; |
1848 ngx_http_ssi_var_t *var; | 1848 ngx_http_ssi_var_t *var; |
1849 ngx_http_ssi_ctx_t *mctx; | 1849 ngx_http_ssi_ctx_t *mctx; |
1850 ngx_http_ssi_block_t *bl; | 1850 ngx_http_ssi_block_t *bl; |
1851 ngx_http_post_subrequest_t *psr; | 1851 ngx_http_post_subrequest_t *psr; |
1945 | 1945 |
1946 psr->handler = ngx_http_ssi_stub_output; | 1946 psr->handler = ngx_http_ssi_stub_output; |
1947 | 1947 |
1948 if (bl[i].count++) { | 1948 if (bl[i].count++) { |
1949 | 1949 |
1950 ll = (ngx_chain_t **) &psr->data; | 1950 ll = &out; |
1951 | 1951 |
1952 for (tl = bl[i].bufs; tl; tl = tl->next) { | 1952 for (tl = bl[i].bufs; tl; tl = tl->next) { |
1953 | 1953 |
1954 if (ctx->free) { | 1954 if (ctx->free) { |
1955 cl = ctx->free; | 1955 cl = ctx->free; |
1976 | 1976 |
1977 *ll = cl; | 1977 *ll = cl; |
1978 cl->next = NULL; | 1978 cl->next = NULL; |
1979 ll = &cl->next; | 1979 ll = &cl->next; |
1980 } | 1980 } |
1981 | |
1982 psr->data = out; | |
1981 | 1983 |
1982 } else { | 1984 } else { |
1983 psr->data = bl[i].bufs; | 1985 psr->data = bl[i].bufs; |
1984 } | 1986 } |
1985 } | 1987 } |