diff src/http/modules/ngx_http_static_module.c @ 1799:0b5b94805d26

optimization
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Dec 2007 20:32:43 +0000
parents 25c93614e6b9
children 93a0d80fdce6 d4df1c875351
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -102,10 +102,9 @@ ngx_http_static_handler(ngx_http_request
     of.errors = clcf->open_file_cache_errors;
     of.events = clcf->open_file_cache_events;
 
-    rc = ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool);
-
-    if (rc == NGX_ERROR) {
-
+    if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
+        != NGX_OK)
+    {
         switch (of.err) {
 
         case 0: