From 7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 17 Jun 2008 15:00:30 +0000 Subject: *) back out r2040 *) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header --- src/core/ngx_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_string.c') diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 01d792f36..c9193152c 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -34,7 +34,7 @@ ngx_pstrdup(ngx_pool_t *pool, ngx_str_t *src) { u_char *dst; - dst = ngx_palloc(pool, src->len); + dst = ngx_pnalloc(pool, src->len); if (dst == NULL) { return NULL; } -- cgit