aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_hunk.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-04-15 15:06:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-04-15 15:06:52 +0000
commit153d743b071263686878c7a72b313a060cd2b9d8 (patch)
tree7e5afd98a2ccd1e4ecbc73f7c81d01ae2119605f /src/core/ngx_hunk.c
parent9e4920b810e1e5e620d3c3638b20cef7446baa6d (diff)
downloadnginx-153d743b071263686878c7a72b313a060cd2b9d8.tar.gz
nginx-153d743b071263686878c7a72b313a060cd2b9d8.zip
nginx-0.0.1-2003-04-15-19:06:52 import
Diffstat (limited to 'src/core/ngx_hunk.c')
-rw-r--r--src/core/ngx_hunk.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c
index fe26a3329..d2c31d52a 100644
--- a/src/core/ngx_hunk.c
+++ b/src/core/ngx_hunk.c
@@ -18,8 +18,10 @@ ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size,
h->post_end = h->end + after;
h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY;
- h->tag = 0;
h->file = NULL;
+ h->shadow = NULL;
+
+ h->tag = 0;
return h;
}
@@ -38,8 +40,10 @@ ngx_hunk_t *ngx_create_hunk_before(ngx_pool_t *pool, ngx_hunk_t *hunk, int size)
h->file_pos = h->file_last = 0;
h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY;
- h->tag = 0;
h->file = NULL;
+ h->shadow = NULL;
+
+ h->tag = 0;
} else {
ngx_test_null(h->pre_start, ngx_palloc(pool, size), NULL);
@@ -48,8 +52,10 @@ ngx_hunk_t *ngx_create_hunk_before(ngx_pool_t *pool, ngx_hunk_t *hunk, int size)
h->file_pos = h->file_last = 0;
h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY;
- h->tag = 0;
h->file = NULL;
+ h->shadow = NULL;
+
+ h->tag = 0;
}
return h;
@@ -71,8 +77,10 @@ ngx_hunk_t *ngx_create_hunk_after(ngx_pool_t *pool, ngx_hunk_t *hunk, int size)
h->file_pos = h->file_last = 0;
h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY;
- h->tag = 0;
h->file = NULL;
+ h->shadow = NULL;
+
+ h->tag = 0;
} else {
ngx_test_null(h->pre_start, ngx_palloc(pool, size), NULL);
@@ -81,8 +89,10 @@ ngx_hunk_t *ngx_create_hunk_after(ngx_pool_t *pool, ngx_hunk_t *hunk, int size)
h->file_pos = h->file_last = 0;
h->type = NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY;
- h->tag = 0;
h->file = NULL;
+ h->shadow = NULL;
+
+ h->tag = 0;
}
return h;