[nginx] Removed incorrect NGX_SUPPRESS_WARN usage.
Maxim Dounin
mdounin at mdounin.ru
Fri May 31 02:27:58 UTC 2024
details: http://freenginx.org/hg/nginx/rev/2fce021888f9
branches:
changeset: 9279:2fce021888f9
user: Maxim Dounin <mdounin at mdounin.ru>
date: Fri May 31 04:38:40 2024 +0300
description:
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.
diffstat:
src/http/ngx_http_variables.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diffs (13 lines):
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;
More information about the nginx-devel
mailing list