Mercurial > hg > nginx
comparison src/http/modules/perl/ngx_http_perl_module.c @ 3516:dd1570b6f237
ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 14 May 2010 09:56:37 +0000 |
parents | 54e7c85ed4b4 |
children | 84905c7b2aa7 |
comparison
equal
deleted
inserted
replaced
3515:76d252724db5 | 3516:dd1570b6f237 |
---|---|
479 m = ngx_array_push(pmcf->modules); | 479 m = ngx_array_push(pmcf->modules); |
480 if (m == NULL) { | 480 if (m == NULL) { |
481 return NGX_CONF_ERROR; | 481 return NGX_CONF_ERROR; |
482 } | 482 } |
483 | 483 |
484 m->len = sizeof(NGX_PERL_MODULES) - 1; | 484 ngx_str_set(m, NGX_PERL_MODULES); |
485 m->data = NGX_PERL_MODULES; | |
486 } | 485 } |
487 #endif | 486 #endif |
488 | 487 |
489 if (pmcf->modules != NGX_CONF_UNSET_PTR) { | 488 if (pmcf->modules != NGX_CONF_UNSET_PTR) { |
490 m = pmcf->modules->elts; | 489 m = pmcf->modules->elts; |