summaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/nginx.h2
-rw-r--r--src/core/ngx_hunk.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/nginx.h b/src/core/nginx.h
index f58df7c8c..83d76ab21 100644
--- a/src/core/nginx.h
+++ b/src/core/nginx.h
@@ -2,7 +2,7 @@
#define _NGINX_H_INCLUDED_
-#define NGINX_VER "nginx/0.0.1"
+#define NGINX_VER "ng:nx/0.0.1"
#define NGINX_CONF "nginx.conf"
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;
}