diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
commit | 1f4220ee869152938d9140c471c37be628532344 (patch) | |
tree | bb17b08acf1f50770fec0846cd6202a593b93674 /src/core/ngx_file.c | |
parent | 9b4a1d00941db4b85fc2ffe7424b706b56f7133f (diff) | |
download | nginx-1f4220ee869152938d9140c471c37be628532344.tar.gz nginx-1f4220ee869152938d9140c471c37be628532344.zip |
small optimization: " == NGX_ERROR" > " != NGX_OK"
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r-- | src/core/ngx_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index fdefacf50..1bb418226 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -259,7 +259,7 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) path->name.len--; } - if (ngx_conf_full_name(cf->cycle, &path->name, 0) == NGX_ERROR) { + if (ngx_conf_full_name(cf->cycle, &path->name, 0) != NGX_OK) { return NULL; } |