Mercurial > hg > nginx
comparison src/http/ngx_http_variables.c @ 773:c3ebeee31026
remove r->root_length
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 12 Oct 2006 13:36:54 +0000 |
parents | 0b0f3d4854c0 |
children | ff16489f1eac |
comparison
equal
deleted
inserted
replaced
772:843412b22ba2 | 773:c3ebeee31026 |
---|---|
850 | 850 |
851 static ngx_int_t | 851 static ngx_int_t |
852 ngx_http_variable_request_filename(ngx_http_request_t *r, | 852 ngx_http_variable_request_filename(ngx_http_request_t *r, |
853 ngx_http_variable_value_t *v, uintptr_t data) | 853 ngx_http_variable_value_t *v, uintptr_t data) |
854 { | 854 { |
855 size_t root; | |
855 ngx_str_t path; | 856 ngx_str_t path; |
856 | 857 |
857 if (ngx_http_map_uri_to_path(r, &path, 0) == NULL) { | 858 if (ngx_http_map_uri_to_path(r, &path, &root, 0) == NULL) { |
858 return NGX_ERROR; | 859 return NGX_ERROR; |
859 } | 860 } |
860 | 861 |
861 /* ngx_http_map_uri_to_path() allocates memory for terminating '\0' */ | 862 /* ngx_http_map_uri_to_path() allocates memory for terminating '\0' */ |
862 | 863 |