aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.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/core/ngx_log.c
parent328df7a5cc91180fef3b1b58129e14bc79bef80b (diff)
downloadnginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.tar.gz
nginx-05b1a8f1e3595beab4397e25c2a6db9d832a6a97.zip
ngx_str_set() and ngx_str_null()
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r--src/core/ngx_log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index 770a59084..c0485c61b 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -429,8 +429,7 @@ ngx_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
value = cf->args->elts;
if (ngx_strcmp(value[1].data, "stderr") == 0) {
- name.len = 0;
- name.data = NULL;
+ ngx_str_null(&name);
} else {
name = value[1];