# HG changeset patch # User Maxim Dounin # Date 1717119520 -10800 # Node ID 2fce021888f947f74f5fa9a732f003994288a208 # Parent f53146df9a47c04ba3e0fce286acff1cebda33cf 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. diff -r f53146df9a47 -r 2fce021888f9 src/http/ngx_http_variables.c --- a/src/http/ngx_http_variables.c Fri May 31 04:38:09 2024 +0300 +++ b/src/http/ngx_http_variables.c Fri May 31 04:38:40 2024 +0300 @@ -932,9 +932,7 @@ ngx_table_elt_t *header, *h, **ph; ph = &h; -#if (NGX_SUPPRESS_WARN) len = 0; -#endif header = part->elts;