summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_log_module.c
diff options
context:
space:
mode:
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;
}