diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-08-20 21:33:43 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-08-20 21:33:43 +0400 |
commit | 92f0126269a4e4faa7c5f459d6a928ac83b5fa9c (patch) | |
tree | aa993b1b4d77758c687a93e23546260b06753849 /src/http/ngx_http_script.c | |
parent | e3cab7675801d224d1d5cdbe7f7b76bbaed97c91 (diff) | |
download | nginx-92f0126269a4e4faa7c5f459d6a928ac83b5fa9c.tar.gz nginx-92f0126269a4e4faa7c5f459d6a928ac83b5fa9c.zip |
Style improved after 12dd27b74117.
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r-- | src/http/ngx_http_script.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 1da793b8f..5fc4cfca0 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -1327,20 +1327,17 @@ ngx_http_script_full_name_code(ngx_http_script_engine_t *e) { ngx_http_script_full_name_code_t *code; - ngx_str_t value; + ngx_str_t value, *prefix; code = (ngx_http_script_full_name_code_t *) e->ip; value.data = e->buf.data; value.len = e->pos - e->buf.data; - if (ngx_get_full_name(e->request->pool, - code->conf_prefix - ? (ngx_str_t *) &ngx_cycle->conf_prefix: - (ngx_str_t *) &ngx_cycle->prefix, - &value) - != NGX_OK) - { + prefix = code->conf_prefix ? (ngx_str_t *) &ngx_cycle->conf_prefix: + (ngx_str_t *) &ngx_cycle->prefix; + + if (ngx_get_full_name(e->request->pool, prefix, &value) != NGX_OK) { e->ip = ngx_http_script_exit; e->status = NGX_HTTP_INTERNAL_SERVER_ERROR; return; |