]> git.kaiwu.me - nginx.git/commitdiff
fix building by Debian gcc-4.1.2 amd64
authorIgor Sysoev <igor@sysoev.ru>
Mon, 16 Oct 2006 13:29:52 +0000 (13:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 16 Oct 2006 13:29:52 +0000 (13:29 +0000)
src/http/modules/ngx_http_ssi_filter_module.c

index 945a4e5e58bca00b85055c2572fd8c67a741b1c4..d61b125a263d3c1f7cf140245307b3ccace8c050 100644 (file)
@@ -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;
         }