summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 027b15f05..26ed3f491 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1397,14 +1397,14 @@ set_arg0(VALUE val, ID id)
}
}
#endif
- rb_progname = rb_tainted_str_new(s, i);
+ rb_progname = rb_obj_freeze(rb_tainted_str_new(s, i));
}
void
ruby_script(const char *name)
{
if (name) {
- rb_progname = rb_tainted_str_new2(name);
+ rb_progname = rb_obj_freeze(rb_tainted_str_new2(name));
}
}