Mercurial > hg > nginx
comparison src/core/ngx_conf_file.c @ 2536:a6d6d762c554
small optimization: " == NGX_ERROR" > " != NGX_OK"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 24 Feb 2009 10:42:23 +0000 |
parents | 2142237f66da |
children | d8316f307b6a |
comparison
equal
deleted
inserted
replaced
2535:ec5825afc7eb | 2536:a6d6d762c554 |
---|---|
739 value = cf->args->elts; | 739 value = cf->args->elts; |
740 file = value[1]; | 740 file = value[1]; |
741 | 741 |
742 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); | 742 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); |
743 | 743 |
744 if (ngx_conf_full_name(cf->cycle, &file, 1) == NGX_ERROR) { | 744 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK) { |
745 return NGX_CONF_ERROR; | 745 return NGX_CONF_ERROR; |
746 } | 746 } |
747 | 747 |
748 if (strpbrk((char *) file.data, "*?[") == NULL) { | 748 if (strpbrk((char *) file.data, "*?[") == NULL) { |
749 | 749 |
852 #endif | 852 #endif |
853 | 853 |
854 if (name) { | 854 if (name) { |
855 full = *name; | 855 full = *name; |
856 | 856 |
857 if (ngx_conf_full_name(cycle, &full, 0) == NGX_ERROR) { | 857 if (ngx_conf_full_name(cycle, &full, 0) != NGX_OK) { |
858 return NULL; | 858 return NULL; |
859 } | 859 } |
860 | 860 |
861 part = &cycle->open_files.part; | 861 part = &cycle->open_files.part; |
862 file = part->elts; | 862 file = part->elts; |