From f4f2efa54c004bae7426f1b03d417ee1240a8d96 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 7 Dec 2007 20:57:38 +0000 Subject: delete useless variable --- src/http/modules/ngx_http_flv_module.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/http/modules/ngx_http_flv_module.c') diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c index b26ab69c9..a1519394a 100644 --- a/src/http/modules/ngx_http_flv_module.c +++ b/src/http/modules/ngx_http_flv_module.c @@ -63,7 +63,6 @@ ngx_http_flv_handler(ngx_http_request_t *r) u_char *p, *last; off_t start, len; size_t root; - ngx_fd_t fd; ngx_int_t rc; ngx_uint_t level, i; ngx_str_t path; @@ -149,11 +148,9 @@ ngx_http_flv_handler(ngx_http_request_t *r) return rc; } - fd = of.fd; - if (!of.is_file) { - if (ngx_close_file(fd) == NGX_FILE_ERROR) { + if (ngx_close_file(of.fd) == NGX_FILE_ERROR) { ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, ngx_close_file_n " \"%s\" failed", path.data); } @@ -235,7 +232,7 @@ ngx_http_flv_handler(ngx_http_request_t *r) b->last_buf = 1; b->last_in_chain = 1; - b->file->fd = fd; + b->file->fd = of.fd; b->file->name = path; b->file->log = log; -- cgit