rb_file_join_fastpath: removed useless StringValueCStr

This commit is contained in:
Jean Boussier 2026-01-18 16:43:07 +01:00
parent 19450d85d6
commit 43d879d3ac
Notes: git 2026-01-18 16:16:04 +00:00

1
file.c
View File

@ -5350,7 +5350,6 @@ rb_file_join_fastpath(long argc, VALUE *args)
VALUE result = rb_str_buf_new(size);
StringValueCStr(args[0]);
int encidx = ENCODING_GET_INLINED(args[0]);
ENCODING_SET_INLINED(result, encidx);
rb_str_buf_append(result, args[0]);