aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-05 19:54:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-05 19:54:02 +0000
commit980a92472cc30271ad7e88eb2dcc43f00e984d4d (patch)
treeb8940cd9e6b8859c78e3c023c1373bae02371f2e /src/core/ngx_conf_file.c
parentb9e344175f4e971284aa14c8fe685936a4957d52 (diff)
downloadnginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.tar.gz
nginx-980a92472cc30271ad7e88eb2dcc43f00e984d4d.zip
nginx-0.0.10-2004-09-05-23:54:02 import
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r--src/core/ngx_conf_file.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index d546fe667..ff236429d 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -590,10 +590,6 @@ ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
i = 0;
}
-#if 0
- file = cycle->open_files.elts;
- for (i = 0; i < cycle->open_files.nelts; i++) {
-#endif
if (name->len != file[i].name.len) {
continue;
}
@@ -612,6 +608,9 @@ ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
if (name) {
file->name = *name;
+ } else {
+ file->name.len = 0;
+ file->name.data = NULL;
}
return file;