[PATCH] Removed incorrect NGX_SUPPRESS_WARN usage
Maxim Dounin
mdounin at mdounin.ru
Fri May 24 15:57:13 UTC 2024
# HG changeset patch
# User Maxim Dounin <mdounin at 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;
More information about the nginx-devel
mailing list