comparison src/http/modules/ngx_http_gzip_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 76925110cdae
children 925b5df2e0c2
comparison
equal deleted inserted replaced
2535:ec5825afc7eb 2536:a6d6d762c554
325 goto failed; 325 goto failed;
326 } 326 }
327 } 327 }
328 328
329 if (in) { 329 if (in) {
330 if (ngx_chain_add_copy(r->pool, &ctx->in, in) == NGX_ERROR) { 330 if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) {
331 goto failed; 331 goto failed;
332 } 332 }
333 } 333 }
334 334
335 if (ctx->nomem) { 335 if (ctx->nomem) {