diff options
Diffstat (limited to 'variable.c')
| -rw-r--r-- | variable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/variable.c b/variable.c index cef867c701..2d022d59b1 100644 --- a/variable.c +++ b/variable.c @@ -238,6 +238,8 @@ rb_mod_set_temporary_name(VALUE mod, VALUE name) rb_raise(rb_eArgError, "the temporary name must not be a constant path to avoid confusion"); } + name = rb_str_new_frozen(name); + // Set the temporary classpath to the given name: RCLASS_SET_CLASSPATH(mod, name, FALSE); } |
