Mercurial > hg > nginx
comparison src/http/ngx_http_variables.c @ 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 | 388a801e9bb9 |
children |
comparison
equal
deleted
inserted
replaced
9278:f53146df9a47 | 9279:2fce021888f9 |
---|---|
930 size_t len; | 930 size_t len; |
931 ngx_uint_t i, n; | 931 ngx_uint_t i, n; |
932 ngx_table_elt_t *header, *h, **ph; | 932 ngx_table_elt_t *header, *h, **ph; |
933 | 933 |
934 ph = &h; | 934 ph = &h; |
935 #if (NGX_SUPPRESS_WARN) | |
936 len = 0; | 935 len = 0; |
937 #endif | |
938 | 936 |
939 header = part->elts; | 937 header = part->elts; |
940 | 938 |
941 for (i = 0; /* void */ ; i++) { | 939 for (i = 0; /* void */ ; i++) { |
942 | 940 |