Skip to content

Conversation

@xeioex
Copy link
Contributor

@xeioex xeioex commented May 5, 2025

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",
| ^~~~~~~~~~~~~~~~~

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",
      |                      ^~~~~~~~~~~~~~~~~
@xeioex xeioex requested a review from VadimZhestikov May 5, 2025 15:55
Copy link
Contributor

@VadimZhestikov VadimZhestikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@xeioex xeioex merged commit ddac1cf into nginx:master May 5, 2025
1 check passed
@xeioex xeioex deleted the fix_unterminated_string_initialization_warning2 branch May 5, 2025 21:50
@xeioex xeioex mentioned this pull request May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants