X-Git-Url: http://git.rot13.org/?p=nginx.git;a=blobdiff_plain;f=nginx%2Fsrc%2Fcore%2Fngx_conf_file.c;h=7ec574e0cf8610a84365e8f12d12acc547003f82;hp=68a89cc319a6d41e553d15687354927b8d64e1b0;hb=refs%2Ftags%2F0.7.39;hpb=ce73043f2886947385224e3e77da24a2bb1643b1 diff --git a/nginx/src/core/ngx_conf_file.c b/nginx/src/core/ngx_conf_file.c index 68a89cc..7ec574e 100644 --- a/nginx/src/core/ngx_conf_file.c +++ b/nginx/src/core/ngx_conf_file.c @@ -741,7 +741,7 @@ ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); - 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; } @@ -854,7 +854,7 @@ ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name) if (name) { full = *name; - if (ngx_conf_full_name(cycle, &full, 0) == NGX_ERROR) { + if (ngx_conf_full_name(cycle, &full, 0) != NGX_OK) { return NULL; }