From f2a1484347ce9bf6b8e71d4c91bcab4187e57556 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 23 Jun 2008 12:27:03 +0000 Subject: change useless ngx_pcalloc() to ngx_pnalloc() --- src/http/modules/perl/nginx.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules') diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index 94d6a2fdd..de4d20074 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -649,7 +649,7 @@ sendfile(r, filename, offset = -1, bytes = 0) path.len = ngx_strlen(filename); - path.data = ngx_pcalloc(r->pool, path.len + 1); + path.data = ngx_pnalloc(r->pool, path.len + 1); if (path.data == NULL) { XSRETURN_EMPTY; } -- cgit