aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_map_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-24 10:42:23 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-24 10:42:23 +0000
commit1f4220ee869152938d9140c471c37be628532344 (patch)
treebb17b08acf1f50770fec0846cd6202a593b93674 /src/http/modules/ngx_http_map_module.c
parent9b4a1d00941db4b85fc2ffe7424b706b56f7133f (diff)
downloadnginx-1f4220ee869152938d9140c471c37be628532344.tar.gz
nginx-1f4220ee869152938d9140c471c37be628532344.zip
small optimization: " == NGX_ERROR" > " != NGX_OK"
Diffstat (limited to 'src/http/modules/ngx_http_map_module.c')
-rw-r--r--src/http/modules/ngx_http_map_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c
index c2459f271..d0eb02c64 100644
--- a/src/http/modules/ngx_http_map_module.c
+++ b/src/http/modules/ngx_http_map_module.c
@@ -374,7 +374,7 @@ ngx_http_map(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
if (ngx_strcmp(value[0].data, "include") == 0) {
file = value[1];
- if (ngx_conf_full_name(cf->cycle, &file, 1) == NGX_ERROR){
+ if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){
return NGX_CONF_ERROR;
}