Mercurial > hg > nginx
comparison src/http/modules/ngx_http_charset_filter_module.c @ 1590:8f8e0a60685f
fix segfault
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 22 Oct 2007 10:15:27 +0000 |
parents | 4705b76bb08b |
children | be6c9033a798 |
comparison
equal
deleted
inserted
replaced
1589:4705b76bb08b | 1590:8f8e0a60685f |
---|---|
1460 || conf->charset == conf->source_charset) | 1460 || conf->charset == conf->source_charset) |
1461 { | 1461 { |
1462 return NGX_CONF_OK; | 1462 return NGX_CONF_OK; |
1463 } | 1463 } |
1464 | 1464 |
1465 if (conf->source_charset >= NGX_HTTP_CHARSET_VAR | |
1466 || conf->charset >= NGX_HTTP_CHARSET_VAR) | |
1467 { | |
1468 return NGX_CONF_OK; | |
1469 } | |
1470 | |
1465 mcf = ngx_http_conf_get_module_main_conf(cf, | 1471 mcf = ngx_http_conf_get_module_main_conf(cf, |
1466 ngx_http_charset_filter_module); | 1472 ngx_http_charset_filter_module); |
1467 recode = mcf->recodes.elts; | 1473 recode = mcf->recodes.elts; |
1468 for (i = 0; i < mcf->recodes.nelts; i++) { | 1474 for (i = 0; i < mcf->recodes.nelts; i++) { |
1469 if (conf->source_charset == recode[i].src | 1475 if (conf->source_charset == recode[i].src |