Skip to content

Commit 9948a8c

Browse files
nobumatzbot
authored andcommitted
[ruby/io-console] Freeze the version string
ruby/io-console@aa79919f79
1 parent decc029 commit 9948a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/io/console/console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ InitVM_console(void)
18961896
{
18971897
/* :stopdoc: */
18981898
cConmode = rb_define_class_under(rb_cIO, "ConsoleMode", rb_cObject);
1899-
rb_define_const(cConmode, "VERSION", rb_str_new_cstr(IO_CONSOLE_VERSION));
1899+
rb_define_const(cConmode, "VERSION", rb_obj_freeze(rb_str_new_cstr(IO_CONSOLE_VERSION)));
19001900
rb_define_alloc_func(cConmode, conmode_alloc);
19011901
rb_undef_method(cConmode, "initialize");
19021902
rb_define_method(cConmode, "initialize_copy", conmode_init_copy, 1);

0 commit comments

Comments
 (0)