summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2025-04-16 16:56:44 +0400
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2025-04-17 19:12:59 +0400
commit444954abacef1d77f3dc6e9b1878684c7e6fe5b3 (patch)
tree12ea88b5603f486db66e98e5fd8f6b6d9e00adfd /src/http
parent04813dac865d538d160de1d01c7248a22503700b (diff)
downloadnginx-444954abacef1d77f3dc6e9b1878684c7e6fe5b3.tar.gz
nginx-444954abacef1d77f3dc6e9b1878684c7e6fe5b3.tar.bz2
Fixed -Wunterminated-string-initialization with gcc15.
Diffstat (limited to 'src/http')
-rw-r--r--src/http/v2/ngx_http_v2_filter_module.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c
index 1e2cafaf1..b63e343a0 100644
--- a/src/http/v2/ngx_http_v2_filter_module.c
+++ b/src/http/v2/ngx_http_v2_filter_module.c
@@ -115,10 +115,11 @@ ngx_http_v2_header_filter(ngx_http_request_t *r)
ngx_http_core_srv_conf_t *cscf;
u_char addr[NGX_SOCKADDR_STRLEN];
- static const u_char nginx[5] = "\x84\xaa\x63\x55\xe7";
+ static const u_char nginx[5] = { 0x84, 0xaa, 0x63, 0x55, 0xe7 };
#if (NGX_HTTP_GZIP)
- static const u_char accept_encoding[12] =
- "\x8b\x84\x84\x2d\x69\x5b\x05\x44\x3c\x86\xaa\x6f";
+ static const u_char accept_encoding[12] = {
+ 0x8b, 0x84, 0x84, 0x2d, 0x69, 0x5b, 0x05, 0x44, 0x3c, 0x86, 0xaa, 0x6f
+ };
#endif
static size_t nginx_ver_len = ngx_http_v2_literal_size(NGINX_VER);