changeset 9279:2fce021888f9

Removed incorrect NGX_SUPPRESS_WARN usage. The len variable in ngx_http_variable_unknown_header() needs to be initialized to 0, as it is incremented by subsequent code.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 31 May 2024 04:38:40 +0300
parents f53146df9a47
children da400acf3756
files src/http/ngx_http_variables.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -932,9 +932,7 @@ ngx_http_variable_unknown_header(ngx_htt
     ngx_table_elt_t  *header, *h, **ph;
 
     ph = &h;
-#if (NGX_SUPPRESS_WARN)
     len = 0;
-#endif
 
     header = part->elts;