summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-27 20:32:43 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-27 20:32:43 +0000
commit86b915901a7174298c4997004b562a75726a1068 (patch)
tree60063af33b3d1bbdd77706933c1946c70e951732 /src/http/ngx_http_script.c
parentce5d6e3237bf57f8773c00178e166c8e7cfe986c (diff)
downloadnginx-86b915901a7174298c4997004b562a75726a1068.tar.gz
nginx-86b915901a7174298c4997004b562a75726a1068.tar.bz2
optimization
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index e30fda254..0af34e32f 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -982,7 +982,7 @@ ngx_http_script_file_code(ngx_http_script_engine_t *e)
of.events = clcf->open_file_cache_events;
if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
- == NGX_ERROR)
+ != NGX_OK)
{
if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,