Skip to content

Commit 13d14c6

Browse files
committed
Freeze File.ftype results
It is unlikely to modify these result strings.
1 parent 74c066a commit 13d14c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ rb_file_ftype(mode_t mode)
24122412
t = "unknown";
24132413
}
24142414

2415-
return rb_usascii_str_new2(t);
2415+
return rb_fstring_cstr(t);
24162416
}
24172417

24182418
/*

0 commit comments

Comments
 (0)