summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-03 09:06:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-03 09:06:26 +0000
commita250a521d3369f57355d98289d48f039bf4c626c (patch)
treec7ea8923f823d62107c41be40f4ed31ea1b9c20a
parent9afd58ffe5c9535ec61dbf14289bcebea46efe60 (diff)
downloadnginx-a250a521d3369f57355d98289d48f039bf4c626c.tar.gz
test the most relevant condition first
-rw-r--r--src/core/ngx_open_file_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c
index 87104a04a..dab98b3ff 100644
--- a/src/core/ngx_open_file_cache.c
+++ b/src/core/ngx_open_file_cache.c
@@ -353,8 +353,8 @@ create:
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);