Mercurial > hg > nginx
comparison src/http/modules/ngx_http_sub_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 | a6954ce88b80 |
comparison
equal
deleted
inserted
replaced
2535:ec5825afc7eb | 2536:a6d6d762c554 |
---|---|
202 } | 202 } |
203 | 203 |
204 /* add the incoming chain to the chain ctx->in */ | 204 /* add the incoming chain to the chain ctx->in */ |
205 | 205 |
206 if (in) { | 206 if (in) { |
207 if (ngx_chain_add_copy(r->pool, &ctx->in, in) == NGX_ERROR) { | 207 if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) { |
208 return NGX_ERROR; | 208 return NGX_ERROR; |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 212 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |