test the most relevant condition first

This commit is contained in:
Igor Sysoev 2007-09-03 09:06:26 +00:00
parent 9afd58ffe5
commit a250a521d3

View File

@ -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);