Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 1704:e584e946e198
move condition declarations inside blocks where they are used
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Dec 2007 12:09:51 +0000 |
parents | bef67c6abbe7 |
children | 685048830623 |
comparison
equal
deleted
inserted
replaced
1703:43747661804d | 1704:e584e946e198 |
---|---|
2371 { | 2371 { |
2372 u_char *p, *last; | 2372 u_char *p, *last; |
2373 ngx_str_t *expr, left, right; | 2373 ngx_str_t *expr, left, right; |
2374 ngx_int_t rc; | 2374 ngx_int_t rc; |
2375 ngx_uint_t negative, noregex, flags; | 2375 ngx_uint_t negative, noregex, flags; |
2376 #if (NGX_PCRE) | |
2377 ngx_str_t err; | |
2378 ngx_regex_t *regex; | |
2379 u_char errstr[NGX_MAX_CONF_ERRSTR]; | |
2380 #endif | |
2381 | 2376 |
2382 if (ctx->command.len == 2) { | 2377 if (ctx->command.len == 2) { |
2383 if (ctx->conditional) { | 2378 if (ctx->conditional) { |
2384 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 2379 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
2385 "the \"if\" command inside the \"if\" command"); | 2380 "the \"if\" command inside the \"if\" command"); |
2509 rc = ngx_strncmp(left.data, right.data, right.len); | 2504 rc = ngx_strncmp(left.data, right.data, right.len); |
2510 } | 2505 } |
2511 | 2506 |
2512 } else { | 2507 } else { |
2513 #if (NGX_PCRE) | 2508 #if (NGX_PCRE) |
2509 ngx_str_t err; | |
2510 ngx_regex_t *regex; | |
2511 u_char errstr[NGX_MAX_CONF_ERRSTR]; | |
2512 | |
2514 err.len = NGX_MAX_CONF_ERRSTR; | 2513 err.len = NGX_MAX_CONF_ERRSTR; |
2515 err.data = errstr; | 2514 err.data = errstr; |
2516 | 2515 |
2517 right.data[right.len] = '\0'; | 2516 right.data[right.len] = '\0'; |
2518 | 2517 |