summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7c6343fa41..759e041802 100644
--- a/eval.c
+++ b/eval.c
@@ -1248,7 +1248,7 @@ rb_eval_string(str)
VALUE v;
char *oldsrc = ruby_sourcefile;
- ruby_sourcefile = "(eval)";
+ ruby_sourcefile = rb_source_filename("(eval)");
v = eval(ruby_top_self, rb_str_new2(str), Qnil, 0, 0);
ruby_sourcefile = oldsrc;