Mercurial > hg > nginx
comparison src/http/modules/ngx_http_sub_filter_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 | c10e7b563fb4 |
children | 333ef9e18a59 |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
708 return NGX_CONF_ERROR; | 708 return NGX_CONF_ERROR; |
709 } | 709 } |
710 | 710 |
711 type->len = value[i].len; | 711 type->len = value[i].len; |
712 | 712 |
713 type->data = ngx_palloc(cf->pool, type->len + 1); | 713 type->data = ngx_pnalloc(cf->pool, type->len + 1); |
714 if (type->data == NULL) { | 714 if (type->data == NULL) { |
715 return NGX_CONF_ERROR; | 715 return NGX_CONF_ERROR; |
716 } | 716 } |
717 | 717 |
718 ngx_cpystrn(type->data, value[i].data, type->len + 1); | 718 ngx_cpystrn(type->data, value[i].data, type->len + 1); |