Mercurial > hg > nginx
comparison src/http/modules/ngx_http_map_module.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 | 4c43e25d11ea |
children | 7a7c9e9024dd |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
128 if (len == 0) { | 128 if (len == 0) { |
129 *v = *map->default_value; | 129 *v = *map->default_value; |
130 return NGX_OK; | 130 return NGX_OK; |
131 } | 131 } |
132 | 132 |
133 name = ngx_palloc(r->pool, len); | 133 name = ngx_pnalloc(r->pool, len); |
134 if (name == NULL) { | 134 if (name == NULL) { |
135 return NGX_ERROR; | 135 return NGX_ERROR; |
136 } | 136 } |
137 | 137 |
138 key = 0; | 138 key = 0; |