diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-03-03 14:49:15 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-06-11 09:32:35 -0700 |
commit | 4aae95f41b6b972245d15e52c46dbd5f278ff2c2 (patch) | |
tree | 42818796633f1b1a9562f629fb3969eee0a8d521 | |
parent | 391edb01f8122b4e229a2d7c78529a4e080abc1a (diff) | |
download | json-4aae95f41b6b972245d15e52c46dbd5f278ff2c2.tar.gz |
regenerate parser
-rw-r--r-- | ext/json/ext/parser/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c index 5b2e61c..ea95e71 100644 --- a/ext/json/ext/parser/parser.c +++ b/ext/json/ext/parser/parser.c @@ -1632,6 +1632,8 @@ case 7: if (json->symbolize_names && json->parsing_name) { *result = rb_str_intern(*result); + } else { + rb_str_resize(*result, RSTRING_LEN(*result)); } if (cs >= JSON_string_first_final) { return p + 1; |