[nginx] Dav: removed dead store after 8e7a5de61664.

Sergey Kandaurov pluknet at nginx.com
Mon Aug 6 12:46:18 UTC 2018


details:   http://hg.nginx.org/nginx/rev/bb40db0e380d
branches:  
changeset: 7331:bb40db0e380d
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Thu Aug 02 13:19:48 2018 +0300
description:
Dav: removed dead store after 8e7a5de61664.

Found by Clang Static Analyzer.

diffstat:

 src/http/modules/ngx_http_dav_module.c |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (12 lines):

diff -r 8e7a5de61664 -r bb40db0e380d src/http/modules/ngx_http_dav_module.c
--- a/src/http/modules/ngx_http_dav_module.c	Wed Aug 01 02:12:21 2018 +0300
+++ b/src/http/modules/ngx_http_dav_module.c	Thu Aug 02 13:19:48 2018 +0300
@@ -841,8 +841,6 @@ overwrite_done:
             return NGX_HTTP_INTERNAL_SERVER_ERROR;
         }
 
-        dlcf = ngx_http_get_module_loc_conf(r, ngx_http_dav_module);
-
         cf.size = ngx_file_size(&fi);
         cf.buf_size = 0;
         cf.access = ngx_file_access(&fi);


More information about the nginx-devel mailing list