[nginx] Cache: removed dead store in ngx_http_file_cache_vary_he...

Maxim Dounin mdounin at mdounin.ru
Wed Nov 5 15:55:27 UTC 2014


details:   http://hg.nginx.org/nginx/rev/f0af7ba616d8
branches:  
changeset: 5898:f0af7ba616d8
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed Nov 05 18:53:26 2014 +0300
description:
Cache: removed dead store in ngx_http_file_cache_vary_header().

Found by Clang Static Analyzer.

diffstat:

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

diffs (11 lines):

diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -1022,7 +1022,6 @@ ngx_http_file_cache_vary_header(ngx_http
         /* normalize spaces */
 
         p = header[i].value.data;
-        start = p;
         last = p + header[i].value.len;
 
         while (p < last) {



More information about the nginx-devel mailing list