Mercurial > hg > nginx-quic
diff src/core/ngx_hunk.c @ 76:6127d7075471
nginx-0.0.1-2003-04-15-19:06:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 15 Apr 2003 15:06:52 +0000 |
parents | 5a7d1aaa1618 |
children | 738fe44c70d5 |
line wrap: on
line diff
--- a/src/core/ngx_hunk.c +++ b/src/core/ngx_hunk.c @@ -18,8 +18,10 @@ ngx_hunk_t *ngx_create_temp_hunk(ngx_poo h->post_end = h->end + after; h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY; + h->file = NULL; + h->shadow = NULL; + h->tag = 0; - h->file = NULL; return h; } @@ -38,8 +40,10 @@ ngx_hunk_t *ngx_create_hunk_before(ngx_p h->file_pos = h->file_last = 0; h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY; + h->file = NULL; + h->shadow = NULL; + h->tag = 0; - h->file = NULL; } else { ngx_test_null(h->pre_start, ngx_palloc(pool, size), NULL); @@ -48,8 +52,10 @@ ngx_hunk_t *ngx_create_hunk_before(ngx_p h->file_pos = h->file_last = 0; h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY; + h->file = NULL; + h->shadow = NULL; + h->tag = 0; - h->file = NULL; } return h; @@ -71,8 +77,10 @@ ngx_hunk_t *ngx_create_hunk_after(ngx_po h->file_pos = h->file_last = 0; h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY; + h->file = NULL; + h->shadow = NULL; + h->tag = 0; - h->file = NULL; } else { ngx_test_null(h->pre_start, ngx_palloc(pool, size), NULL); @@ -81,8 +89,10 @@ ngx_hunk_t *ngx_create_hunk_after(ngx_po h->file_pos = h->file_last = 0; h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY; + h->file = NULL; + h->shadow = NULL; + h->tag = 0; - h->file = NULL; } return h;