Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-21 20:50:49 +0300
committerIgor Sysoev <igor@sysoev.ru>2007-12-21 20:50:49 +0300
commit465a5ff18b4c0d937d7226586dd8f78dceeae58b (patch)
tree8007ddd9bfd5b3ea87cd1e3a4ba5c478ab56f7a5 /src/http/modules/ngx_http_dav_module.c
parentb28f5cc3cbf629c3a67f0404ae36c2817a66d3f8 (diff)
tree.init_handler is never called
Diffstat (limited to 'src/http/modules/ngx_http_dav_module.c')
-rw-r--r--src/http/modules/ngx_http_dav_module.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c
index e1533e867..2d555c556 100644
--- a/src/http/modules/ngx_http_dav_module.c
+++ b/src/http/modules/ngx_http_dav_module.c
@@ -37,7 +37,6 @@ static ngx_int_t ngx_http_dav_handler(ngx_http_request_t *r);
static void ngx_http_dav_put_handler(ngx_http_request_t *r);
static ngx_int_t ngx_http_dav_delete_handler(ngx_http_request_t *r);
-static ngx_int_t ngx_http_dav_no_init(void *ctx, void *prev);
static ngx_int_t ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path);
static ngx_int_t ngx_http_dav_delete_dir(ngx_tree_ctx_t *ctx, ngx_str_t *path);
static ngx_int_t ngx_http_dav_delete_file(ngx_tree_ctx_t *ctx, ngx_str_t *path);
@@ -409,13 +408,6 @@ ngx_http_dav_delete_handler(ngx_http_request_t *r)
static ngx_int_t
-ngx_http_dav_no_init(void *ctx, void *prev)
-{
- return NGX_OK;
-}
-
-
-static ngx_int_t
ngx_http_dav_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path)
{
return NGX_OK;
@@ -710,7 +702,7 @@ overwrite_done:
copy.len = path.len;
- tree.init_handler = ngx_http_dav_no_init;
+ tree.init_handler = NULL;
tree.file_handler = ngx_http_dav_copy_file;
tree.pre_tree_handler = ngx_http_dav_copy_dir;
tree.post_tree_handler = ngx_http_dav_copy_dir_time;
@@ -960,7 +952,7 @@ ngx_http_dav_delete_path(ngx_http_request_t *r, ngx_str_t *path, ngx_uint_t dir)
if (dir) {
- tree.init_handler = ngx_http_dav_no_init;
+ tree.init_handler = NULL;
tree.file_handler = ngx_http_dav_delete_file;
tree.pre_tree_handler = ngx_http_dav_noop;
tree.post_tree_handler = ngx_http_dav_delete_dir;