summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2025-04-16 16:56:44 +0400
committerpluknet <pluknet@nginx.com>2025-04-23 15:48:54 +0400
commit3a97c9616cfd7c4dd3a177cb2cb583301e80404c (patch)
tree0c86101d9eb900fe1a59774c016839485a9f2101 /src/http
parentf2aa4339a5877bfe8a346a090b1bdef00b20d521 (diff)
downloadnginx-3a97c9616cfd7c4dd3a177cb2cb583301e80404c.tar.gz
nginx-3a97c9616cfd7c4dd3a177cb2cb583301e80404c.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);