diff src/core/ngx_hunk.c @ 136:da00cde00e8a

nginx-0.0.1-2003-10-02-09:39:37 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 02 Oct 2003 05:39:37 +0000
parents e29909bd9b8a
children 2d9e4a8b6d11
line wrap: on
line diff
--- 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_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;
 }