diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 09:17:20 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 09:17:20 +0000 |
commit | 99c3ab964fdf3be0fbe9417d9b516a7fe2cb4ee4 (patch) | |
tree | 71f565d4768eda624ec28350195d655086345a84 /src | |
parent | 513fec7edac99d0983d73ec1dc1ecd07f14f11df (diff) | |
download | nginx-99c3ab964fdf3be0fbe9417d9b516a7fe2cb4ee4.tar.gz nginx-99c3ab964fdf3be0fbe9417d9b516a7fe2cb4ee4.zip |
optimization
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index bd906f20e..c2a8457a7 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2891,8 +2891,7 @@ ngx_http_core_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) sn->regex = NULL; #endif sn->core_srv_conf = cscf; - sn->name.len = value[i].len; - sn->name.data = value[i].data; + sn->name = value[i]; if (value[i].data[0] != '~') { continue; @@ -2917,8 +2916,7 @@ ngx_http_core_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) return NGX_CONF_ERROR; } - sn->name.len = value[i].len; - sn->name.data = value[i].data; + sn->name = value[i]; } #else ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |