diff src/mysql/ngx_http_mysql_test.c @ 2049:2a92804f4109

*) back out r2040 *) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
author Igor Sysoev <igor@sysoev.ru>
date Tue, 17 Jun 2008 15:00:30 +0000
parents fe11e2a3946d
children f0d596e84634
line wrap: on
line diff
--- 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;