diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 4f0470940a..42b000fc30 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -1483,7 +1483,6 @@ prompt(int argc, VALUE *argv, VALUE io) if (argc > 0 && !NIL_P(argv[0])) { VALUE str = argv[0]; StringValueCStr(str); - rb_check_safe_obj(str); rb_io_write(io, str); } }