aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-30 19:44:38 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-30 19:44:38 +0000
commit4bed15b9b58f7ea5c1626162944db140b7119488 (patch)
treefaafc4c9b995ba74373dfb4cb9a8d14ba9fd9e30 /src/core/ngx_conf_file.c
parent0bc87e9ef438cb7d9d9c061b7306279b26c38a78 (diff)
downloadnginx-4bed15b9b58f7ea5c1626162944db140b7119488.tar.gz
nginx-4bed15b9b58f7ea5c1626162944db140b7119488.zip
nginx-0.1.0-2004-09-30-23:44:38 import
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r--src/core/ngx_conf_file.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index 6387fadc0..d51320908 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -632,15 +632,12 @@ ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
return NULL;
}
- file->fd = NGX_INVALID_FILE;
-
if (name) {
+ file->fd = NGX_INVALID_FILE;
file->name = full;
} else {
-
- /* stderr */
-
+ file->fd = STDERR_FILENO;
file->name.len = 0;
file->name.data = NULL;
}