summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-13 20:41:41 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-13 20:41:41 +0000
commit950fb268a2b89f782d8f74278a3878651aa3df6f (patch)
tree7a6d9124c0982f09223fd773aef6db5a6cb0dff6 /src/http
parent30870b4ab31b4582af200b0abbaae47a6366a7d0 (diff)
downloadnginx-950fb268a2b89f782d8f74278a3878651aa3df6f.tar.gz
nginx-950fb268a2b89f782d8f74278a3878651aa3df6f.tar.bz2
ngx_regex_exec() calling optimiztion:
*) change NGX_REGEX_NO_MATCHED to PCRE_ERROR_NOMATCH *) declare ngx_regex_exec() as #define *) optimize SSI regex a little
Diffstat (limited to '')
-rw-r--r--src/http/modules/ngx_http_ssi_filter_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c
index d03e58407..f06994db3 100644
--- a/src/http/modules/ngx_http_ssi_filter_module.c
+++ b/src/http/modules/ngx_http_ssi_filter_module.c
@@ -2468,7 +2468,7 @@ ngx_http_ssi_if(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx,
rc = ngx_regex_exec(regex, &left, NULL, 0);
- if (rc != NGX_REGEX_NO_MATCHED && rc < 0) {
+ if (rc < NGX_REGEX_NO_MATCHED) {
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
ngx_regex_exec_n " failed: %d on \"%V\" using \"%V\"",
rc, &left, &right);