Mercurial > hg > nginx
comparison src/http/modules/ngx_http_charset_filter_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 | cc13ff6d5c07 |
children | 3cd2790f4a9b |
comparison
equal
deleted
inserted
replaced
2535:ec5825afc7eb | 2536:a6d6d762c554 |
---|---|
1419 if (mcf == NULL) { | 1419 if (mcf == NULL) { |
1420 return NGX_CONF_ERROR; | 1420 return NGX_CONF_ERROR; |
1421 } | 1421 } |
1422 | 1422 |
1423 if (ngx_array_init(&mcf->charsets, cf->pool, 2, sizeof(ngx_http_charset_t)) | 1423 if (ngx_array_init(&mcf->charsets, cf->pool, 2, sizeof(ngx_http_charset_t)) |
1424 == NGX_ERROR) | 1424 != NGX_OK) |
1425 { | 1425 { |
1426 return NGX_CONF_ERROR; | 1426 return NGX_CONF_ERROR; |
1427 } | 1427 } |
1428 | 1428 |
1429 if (ngx_array_init(&mcf->tables, cf->pool, 1, | 1429 if (ngx_array_init(&mcf->tables, cf->pool, 1, |
1430 sizeof(ngx_http_charset_tables_t)) == NGX_ERROR) | 1430 sizeof(ngx_http_charset_tables_t)) |
1431 != NGX_OK) | |
1431 { | 1432 { |
1432 return NGX_CONF_ERROR; | 1433 return NGX_CONF_ERROR; |
1433 } | 1434 } |
1434 | 1435 |
1435 if (ngx_array_init(&mcf->recodes, cf->pool, 2, | 1436 if (ngx_array_init(&mcf->recodes, cf->pool, 2, |
1436 sizeof(ngx_http_charset_recode_t)) == NGX_ERROR) | 1437 sizeof(ngx_http_charset_recode_t)) |
1438 != NGX_OK) | |
1437 { | 1439 { |
1438 return NGX_CONF_ERROR; | 1440 return NGX_CONF_ERROR; |
1439 } | 1441 } |
1440 | 1442 |
1441 return mcf; | 1443 return mcf; |