[ruby/json] initialize search.chunk_end to silence a warning about it being potentially uninitialized

https://github.com/ruby/json/commit/73818b80c8
This commit is contained in:
Scott Myron 2026-01-13 22:17:16 -06:00 committed by git
parent 24ad90d3e0
commit a650c90fab

View File

@ -1119,6 +1119,7 @@ static void raw_generate_json_string(FBuffer *buffer, struct generate_json_data
search.matches_mask = 0;
search.has_matches = false;
search.chunk_base = NULL;
search.chunk_end = NULL;
#endif /* HAVE_SIMD */
switch (rb_enc_str_coderange(obj)) {