comparison src/http/modules/ngx_http_map_module.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 7a7c9e9024dd
children c7d57b539248
comparison
equal deleted inserted replaced
2535:ec5825afc7eb 2536:a6d6d762c554
372 } 372 }
373 373
374 if (ngx_strcmp(value[0].data, "include") == 0) { 374 if (ngx_strcmp(value[0].data, "include") == 0) {
375 file = value[1]; 375 file = value[1];
376 376
377 if (ngx_conf_full_name(cf->cycle, &file, 1) == NGX_ERROR){ 377 if (ngx_conf_full_name(cf->cycle, &file, 1) != NGX_OK){
378 return NGX_CONF_ERROR; 378 return NGX_CONF_ERROR;
379 } 379 }
380 380
381 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data); 381 ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
382 382