summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/perl/nginx.xs
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-06-23 12:27:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-06-23 12:27:03 +0000
commitf2a1484347ce9bf6b8e71d4c91bcab4187e57556 (patch)
tree357e78e6998b1d0d840144bbb99c4ec9c243e506 /src/http/modules/perl/nginx.xs
parent96a1ea9d227b730c80658dd2a5866d990958583d (diff)
downloadnginx-f2a1484347ce9bf6b8e71d4c91bcab4187e57556.tar.gz
nginx-f2a1484347ce9bf6b8e71d4c91bcab4187e57556.tar.bz2
change useless ngx_pcalloc() to ngx_pnalloc()
Diffstat (limited to 'src/http/modules/perl/nginx.xs')
-rw-r--r--src/http/modules/perl/nginx.xs2
1 files changed, 1 insertions, 1 deletions
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;
}