comparison src/http/modules/ngx_http_log_module.c @ 5317:f1a91825730a

Replaced ngx_conf_full_name() with ngx_get_full_name(). The ngx_get_full_name() function takes more readable arguments list.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 06 Aug 2013 19:58:40 +0400
parents 3849bb380605
children 314c3d7cc3a5
comparison
equal deleted inserted replaced
5316:12dd27b74117 5317:f1a91825730a
1132 if (log->file == NULL) { 1132 if (log->file == NULL) {
1133 return NGX_CONF_ERROR; 1133 return NGX_CONF_ERROR;
1134 } 1134 }
1135 1135
1136 } else { 1136 } else {
1137 if (ngx_conf_full_name(cf->cycle, &value[1], 0) != NGX_OK) { 1137 if (ngx_get_full_name(cf->pool, &cf->cycle->prefix, &value[1])
1138 != NGX_OK)
1139 {
1138 return NGX_CONF_ERROR; 1140 return NGX_CONF_ERROR;
1139 } 1141 }
1140 1142
1141 log->script = ngx_pcalloc(cf->pool, sizeof(ngx_http_log_script_t)); 1143 log->script = ngx_pcalloc(cf->pool, sizeof(ngx_http_log_script_t));
1142 if (log->script == NULL) { 1144 if (log->script == NULL) {