aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-02 05:39:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-02 05:39:37 +0000
commit87a01ea908356173d6387aea2af94ad0fe236bb4 (patch)
tree1abe9d49f56322c179e224b9154a9c871d13dacb /src/core/ngx_hunk.c
parent2cdd7e9e5bd7c0ddcc5dbf57aa3ffb998fd3335f (diff)
downloadnginx-87a01ea908356173d6387aea2af94ad0fe236bb4.tar.gz
nginx-87a01ea908356173d6387aea2af94ad0fe236bb4.zip
nginx-0.0.1-2003-10-02-09:39:37 import
Diffstat (limited to 'src/core/ngx_hunk.c')
-rw-r--r--src/core/ngx_hunk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c
index 992db16a0..517a1af23 100644
--- a/src/core/ngx_hunk.c
+++ b/src/core/ngx_hunk.c
@@ -113,12 +113,13 @@ int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in)
ngx_test_null(ce, ngx_alloc_chain_entry(pool), NGX_ERROR);
ce->hunk = in->hunk;
- ce->next = NULL;
*le = ce;
le = &ce->next;
in = in->next;
}
+ *le = NULL;
+
return NGX_OK;
}