comparison src/http/modules/ngx_http_range_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 7155dbb2317e
children 3a8a53c0c42f
comparison
equal deleted inserted replaced
2535:ec5825afc7eb 2536:a6d6d762c554
185 if (ctx == NULL) { 185 if (ctx == NULL) {
186 return NGX_ERROR; 186 return NGX_ERROR;
187 } 187 }
188 188
189 if (ngx_array_init(&ctx->ranges, r->pool, 1, sizeof(ngx_http_range_t)) 189 if (ngx_array_init(&ctx->ranges, r->pool, 1, sizeof(ngx_http_range_t))
190 == NGX_ERROR) 190 != NGX_OK)
191 { 191 {
192 return NGX_ERROR; 192 return NGX_ERROR;
193 } 193 }
194 194
195 rc = ngx_http_range_parse(r, ctx); 195 rc = ngx_http_range_parse(r, ctx);