diff options
| author | Scott Myron <samyron@gmail.com> | 2026-01-13 22:17:16 -0600 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-01-14 07:59:32 +0000 |
| commit | a650c90fab6370a4abb9a1903186f350376aeb38 (patch) | |
| tree | 37adccdc61ccf6544cb62197054f6c7e474b269f | |
| parent | 24ad90d3e06ee9bcfc56d91358eb3d4792912a46 (diff) | |
[ruby/json] initialize search.chunk_end to silence a warning about it being potentially uninitialized
https://github.com/ruby/json/commit/73818b80c8
| -rw-r--r-- | ext/json/generator/generator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c index fdf832f86c..4e62142103 100644 --- a/ext/json/generator/generator.c +++ b/ext/json/generator/generator.c @@ -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)) { |
