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/mysql/ngx_http_mysql_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mysql/ngx_http_mysql_test.c') diff --git a/src/mysql/ngx_http_mysql_test.c b/src/mysql/ngx_http_mysql_test.c index 789274337..6b9d7b019 100644 --- a/src/mysql/ngx_http_mysql_test.c +++ b/src/mysql/ngx_http_mysql_test.c @@ -129,7 +129,7 @@ ngx_http_mysql_auth(ngx_mysql_t *m) m->query.len = NGX_MYSQL_CMDPKT_LEN + ngx_mysql_command_query.len; - m->query.data = ngx_palloc(r->pool, m->query.len); + m->query.data = ngx_pnalloc(r->pool, m->query.len); if (m->query.data == NULL) { ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); return; -- cgit v1.2.3