comparison src/http/ngx_http_variables.c @ 248:acd2ec3541cb NGINX_0_4_9

nginx 0.4.9 *) Feature: the "set" parameter in the "include" SSI command. *) Feature: the ngx_http_perl_module now tests the nginx.pm module version.
author Igor Sysoev <http://sysoev.ru>
date Fri, 13 Oct 2006 00:00:00 +0400
parents b52bd034c577
children fbf2b2f66c9f
comparison
equal deleted inserted replaced
247:fcca101509a4 248:acd2ec3541cb
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