aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-06-17 15:00:30 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-06-17 15:00:30 +0000
commit7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1 (patch)
tree90325238fc9a9d9a7e8818e76b60cc9e011242aa /src/core/ngx_string.c
parentc2eb2cf4cba5f47fbc33eebe279f0d3855401421 (diff)
downloadnginx-7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1.tar.gz
nginx-7f6b2ffc60135a8340213fe8d5d0b70e479e3ac1.zip
*) back out r2040
*) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r--src/core/ngx_string.c2
1 files changed, 1 insertions, 1 deletions
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;
}