Skip to content

Commit ddac1cf

Browse files
committed
HTTP: fixed GCC 15 build with -Wunterminated-string-initialization.
ngx_http_js_module.c:936:22: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (16 chars into 15 available) [-Werror=unterminated-string-initialization] 936 | .value = "PeriodicSession", | ^~~~~~~~~~~~~~~~~
1 parent e3cfb4f commit ddac1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/njs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ struct njs_external_s {
187187

188188
union {
189189
struct {
190-
const char value[15]; /* NJS_STRING_SHORT + 1. */
190+
const char *value;
191191
njs_prop_handler_t handler;
192192
uint16_t magic16;
193193
uint32_t magic32;

0 commit comments

Comments
 (0)