# HG changeset patch # User Maxim Dounin <mdou...@mdounin.ru> # Date 1716562380 -10800 # Fri May 24 17:53:00 2024 +0300 # Node ID e2b22024f6a1c102b3a42016f184cd09e2a49067 # Parent 5e7588d2d9cc8be293eae25f27a319721623db81 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 --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c --- 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;