aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-07 20:57:38 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-07 20:57:38 +0000
commitf4f2efa54c004bae7426f1b03d417ee1240a8d96 (patch)
treeaa892ae7e764f3fe806aac0a4d9dcb91d59e2eb5 /src/http/modules/ngx_http_static_module.c
parente9af690e6168a1be972c5adcddd9e64b8e75de56 (diff)
downloadnginx-f4f2efa54c004bae7426f1b03d417ee1240a8d96.tar.gz
nginx-f4f2efa54c004bae7426f1b03d417ee1240a8d96.zip
delete useless variable
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c
index 9278497d9..3da2f7ae5 100644
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -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;