mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
delete useless variable
This commit is contained in:
parent
e9af690e61
commit
f4f2efa54c
@ -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;
|
||||
|
||||
|
@ -49,7 +49,6 @@ ngx_http_static_handler(ngx_http_request_t *r)
|
||||
{
|
||||
u_char *last, *location;
|
||||
size_t root;
|
||||
ngx_fd_t fd;
|
||||
ngx_str_t path;
|
||||
ngx_int_t rc;
|
||||
ngx_uint_t level;
|
||||
@ -140,9 +139,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
|
||||
return rc;
|
||||
}
|
||||
|
||||
fd = of.fd;
|
||||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", fd);
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd);
|
||||
|
||||
if (of.is_dir) {
|
||||
|
||||
@ -230,7 +227,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
|
||||
b->last_buf = (r == r->main) ? 1: 0;
|
||||
b->last_in_chain = 1;
|
||||
|
||||
b->file->fd = fd;
|
||||
b->file->fd = of.fd;
|
||||
b->file->name = path;
|
||||
b->file->log = log;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user