comparison src/http/modules/perl/nginx.xs @ 2061:b0a1c84725cf

change useless ngx_pcalloc() to ngx_pnalloc()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Jun 2008 12:27:03 +0000
parents 2a92804f4109
children 67a29af877ed
comparison
equal deleted inserted replaced
2060:7f936e479fda 2061:b0a1c84725cf
647 of.errors = clcf->open_file_cache_errors; 647 of.errors = clcf->open_file_cache_errors;
648 of.events = clcf->open_file_cache_events; 648 of.events = clcf->open_file_cache_events;
649 649
650 path.len = ngx_strlen(filename); 650 path.len = ngx_strlen(filename);
651 651
652 path.data = ngx_pcalloc(r->pool, path.len + 1); 652 path.data = ngx_pnalloc(r->pool, path.len + 1);
653 if (path.data == NULL) { 653 if (path.data == NULL) {
654 XSRETURN_EMPTY; 654 XSRETURN_EMPTY;
655 } 655 }
656 656
657 (void) ngx_cpystrn(path.data, filename, path.len + 1); 657 (void) ngx_cpystrn(path.data, filename, path.len + 1);