diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-12 13:36:54 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-12 13:36:54 +0000 |
commit | 0e5f86d871713b35e6e402ceee3435675c2c5b7f (patch) | |
tree | 34a3bed03cd7c378626606add0b6de870b98d6e2 /src/http/modules/ngx_http_autoindex_module.c | |
parent | c3df798bb434682be2ea3b4d09e923bc58f0af34 (diff) | |
download | nginx-0e5f86d871713b35e6e402ceee3435675c2c5b7f.tar.gz nginx-0e5f86d871713b35e6e402ceee3435675c2c5b7f.zip |
remove r->root_length
Diffstat (limited to 'src/http/modules/ngx_http_autoindex_module.c')
-rw-r--r-- | src/http/modules/ngx_http_autoindex_module.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c index 1c7709376..f5944c447 100644 --- a/src/http/modules/ngx_http_autoindex_module.c +++ b/src/http/modules/ngx_http_autoindex_module.c @@ -135,7 +135,7 @@ ngx_http_autoindex_handler(ngx_http_request_t *r) { u_char *last, *filename, scale; off_t length; - size_t len, copy, allocated; + size_t len, copy, allocated, root; ngx_tm_t tm; ngx_err_t err; ngx_buf_t *b; @@ -174,7 +174,8 @@ ngx_http_autoindex_handler(ngx_http_request_t *r) /* NGX_DIR_MASK_LEN is lesser than NGX_HTTP_AUTOINDEX_PREALLOCATE */ - last = ngx_http_map_uri_to_path(r, &path, NGX_HTTP_AUTOINDEX_PREALLOCATE); + last = ngx_http_map_uri_to_path(r, &path, &root, + NGX_HTTP_AUTOINDEX_PREALLOCATE); if (last == NULL) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } |