Mercurial > hg > nginx
comparison src/http/modules/ngx_http_dav_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 | b9de93d804ea |
children | dbe746851b31 |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
1100 | 1100 |
1101 if (!clcf->alias && clcf->root_lengths == NULL) { | 1101 if (!clcf->alias && clcf->root_lengths == NULL) { |
1102 location = path + clcf->root.len; | 1102 location = path + clcf->root.len; |
1103 | 1103 |
1104 } else { | 1104 } else { |
1105 location = ngx_palloc(r->pool, r->uri.len); | 1105 location = ngx_pnalloc(r->pool, r->uri.len); |
1106 if (location == NULL) { | 1106 if (location == NULL) { |
1107 return NGX_ERROR; | 1107 return NGX_ERROR; |
1108 } | 1108 } |
1109 | 1109 |
1110 ngx_memcpy(location, r->uri.data, r->uri.len); | 1110 ngx_memcpy(location, r->uri.data, r->uri.len); |