mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[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:
parent
24ad90d3e0
commit
a650c90fab
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user