changeset 1781:bfb66d7c2b42

optimization
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Dec 2007 09:17:20 +0000
parents 74840e606733
children db07cb9d1cbc
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c	Thu Dec 27 08:40:14 2007 +0000
+++ b/src/http/ngx_http_core_module.c	Thu Dec 27 09:17:20 2007 +0000
@@ -2891,8 +2891,7 @@
         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 @@
             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,