Mercurial > hg > nginx-mail
diff src/http/ngx_http_script.c @ 507:56baf312c1b5 NGINX_0_7_46
nginx 0.7.46
*) Bugfix: the previous release tarball was incorrect.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 30 Mar 2009 00:00:00 +0400 |
parents | c8cfb6c462ef |
children | 392c16f2d858 |
line wrap: on
line diff
--- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -32,7 +32,7 @@ static uintptr_t ngx_http_script_exit_co void -ngx_http_scrip_flush_complex_value(ngx_http_request_t *r, +ngx_http_script_flush_complex_value(ngx_http_request_t *r, ngx_http_complex_value_t *val) { ngx_uint_t *index; @@ -67,7 +67,7 @@ ngx_http_complex_value(ngx_http_request_ return NGX_OK; } - ngx_http_scrip_flush_complex_value(r, val); + ngx_http_script_flush_complex_value(r, val); ngx_memzero(&e, sizeof(ngx_http_script_engine_t)); @@ -118,11 +118,6 @@ ngx_http_compile_complex_value(ngx_http_ return NGX_ERROR; } - ccv->complex_value->value = *v; - ccv->complex_value->flushes = NULL; - ccv->complex_value->lengths = NULL; - ccv->complex_value->values = NULL; - nv = 0; nc = 0; @@ -147,6 +142,11 @@ ngx_http_compile_complex_value(ngx_http_ ccv->root_prefix = 0; } + ccv->complex_value->value = *v; + ccv->complex_value->flushes = NULL; + ccv->complex_value->lengths = NULL; + ccv->complex_value->values = NULL; + if (nv == 0 && nc == 0) { return NGX_OK; }