Mercurial > hg > nginx
comparison src/http/modules/ngx_http_index_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 | 0b5b94805d26 |
children | 67a29af877ed |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
252 | 252 |
253 if (!clcf->alias) { | 253 if (!clcf->alias) { |
254 uri.data = path.data + root; | 254 uri.data = path.data + root; |
255 | 255 |
256 } else { | 256 } else { |
257 uri.data = ngx_palloc(r->pool, uri.len); | 257 uri.data = ngx_pnalloc(r->pool, uri.len); |
258 if (uri.data == NULL) { | 258 if (uri.data == NULL) { |
259 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 259 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
260 } | 260 } |
261 | 261 |
262 p = ngx_copy(uri.data, r->uri.data, r->uri.len); | 262 p = ngx_copy(uri.data, r->uri.data, r->uri.len); |