aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_log_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-05-14 09:56:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-05-14 09:56:37 +0000
commit05b1a8f1e3595beab4397e25c2a6db9d832a6a97 (patch)
tree282923e87cbaf9d634dab4a7c69ce85d602effcf /src/http/modules/ngx_http_log_module.c
parent328df7a5cc91180fef3b1b58129e14bc79bef80b (diff)
downloadnginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.gz
nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.zip
ngx_str_set() and ngx_str_null()
Diffstat (limited to 'src/http/modules/ngx_http_log_module.c')
-rw-r--r--src/http/modules/ngx_http_log_module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c
index 1796ee27f..5f356c357 100644
--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -747,8 +747,7 @@ ngx_http_log_create_main_conf(ngx_conf_t *cf)
return NULL;
}
- fmt->name.len = sizeof("combined") - 1;
- fmt->name.data = (u_char *) "combined";
+ ngx_str_set(&fmt->name, "combined");
fmt->flushes = NULL;
@@ -922,8 +921,7 @@ ngx_http_log_set_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
}
} else {
- name.len = sizeof("combined") - 1;
- name.data = (u_char *) "combined";
+ ngx_str_set(&name, "combined");
lmcf->combined_used = 1;
}