Return fstrings from build_const_pathname
.
It's possible for `build_const_pathname` to be called when `rb_cString` is still NULL. There is a fix-up step when `rb_cString` is initialized, but it only applies to `fstring` instances.
This commit is contained in:
parent
13b17cb8fc
commit
9151ed2fb2
Notes:
git
2021-09-25 15:19:40 +09:00
@ -202,8 +202,7 @@ build_const_pathname(VALUE head, VALUE tail)
|
||||
VALUE path = rb_str_dup(head);
|
||||
rb_str_cat2(path, "::");
|
||||
rb_str_append(path, tail);
|
||||
OBJ_FREEZE(path);
|
||||
return path;
|
||||
return rb_fstring(path);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user