diff options
author | Jean Boussier <[email protected]> | 2024-11-03 10:22:20 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2024-11-05 18:00:36 +0100 |
commit | 2f84a02ad51414c0b2e80da671745184031e6f4c () | |
tree | c39cf6e906110abc2499a2f34c5496ac35336018 /ext/json/generator | |
parent | ed22e6837941b429538cff5c8110b2caf2634474 (diff) |
[ruby/json] Use rb_str_new_frozen
https://.com/ruby/json/commit/90c8aaaa6a
Notes: Merged: https://.com/ruby/ruby/pull/12003
-rw-r--r-- | ext/json/generator/generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1113,7 +1113,7 @@ static VALUE string_config(VALUE config) if (RTEST(config)) { Check_Type(config, T_STRING); if (RSTRING_LEN(config)) { - return RB_OBJ_FROZEN(config) ? config : rb_str_freeze(rb_str_dup(config)); } } return Qfalse; |