diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-03-03 14:49:15 -0800 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2016-06-21 10:56:58 +0200 |
commit | ad7e997411f8de2184ed4f61b0d207b0ea3e76ef (patch) | |
tree | 85d8e55d0ae030dac6503fc36f3e0f05bef1f00f /ext/json/ext/parser/parser.c | |
parent | 797ce5386e3919b33831c01561b381a475757f8a (diff) | |
download | json-ad7e997411f8de2184ed4f61b0d207b0ea3e76ef.tar.gz |
regenerate parser
Diffstat (limited to 'ext/json/ext/parser/parser.c')
-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 8d83808..7e32ef0 100644 --- a/ext/json/ext/parser/parser.c +++ b/ext/json/ext/parser/parser.c @@ -1647,6 +1647,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; |