]> git.kaiwu.me - nginx.git/commitdiff
Cache: removed dead store in ngx_http_file_cache_vary_header().
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 5 Nov 2014 15:53:26 +0000 (18:53 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 5 Nov 2014 15:53:26 +0000 (18:53 +0300)
Found by Clang Static Analyzer.

src/http/ngx_http_file_cache.c

index bc4c80602c4901891771f3a5c4bf7e6223f8ea57..e7072e10e1c6b643850565c2d228eab98a371cd1 100644 (file)
@@ -1022,7 +1022,6 @@ ngx_http_file_cache_vary_header(ngx_http_request_t *r, ngx_md5_t *md5,
         /* normalize spaces */
 
         p = header[i].value.data;
-        start = p;
         last = p + header[i].value.len;
 
         while (p < last) {