commit | a250a521d3369f57355d98289d48f039bf4c626c | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Sep 03 09:06:26 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Sep 03 09:06:26 2007 +0000 |
tree | c7ea8923f823d62107c41be40f4ed31ea1b9c20a | |
parent | 9afd58ffe5c9535ec61dbf14289bcebea46efe60 [diff] |
test the most relevant condition first
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index 87104a0..dab98b3 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c
@@ -353,8 +353,8 @@ update: - if ((ngx_event_flags & NGX_USE_VNODE_EVENT) - && of->events + if (of->events + && (ngx_event_flags & NGX_USE_VNODE_EVENT) && of->fd != NGX_INVALID_FILE) { file->event = ngx_calloc(sizeof(ngx_event_t), pool->log);