From 1f4220ee869152938d9140c471c37be628532344 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 24 Feb 2009 10:42:23 +0000 Subject: small optimization: " == NGX_ERROR" > " != NGX_OK" --- src/http/modules/ngx_http_log_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules/ngx_http_log_module.c') diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index 7a85d1b75..93ff90568 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -863,7 +863,7 @@ ngx_http_log_set_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } } else { - if (ngx_conf_full_name(cf->cycle, &value[1], 0) == NGX_ERROR) { + if (ngx_conf_full_name(cf->cycle, &value[1], 0) != NGX_OK) { return NGX_CONF_ERROR; } -- cgit