summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-11-26 08:25:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-11-26 08:25:51 +0000
commit11187ce939d94c3a2f6d9239114c2696a8271834 (patch)
treecfa74a6ea96d9652aae8da349eec2da41b2aca64 /parse.y
parent8271cacad706ed0d7741889faebb0c19270b8370 (diff)
1.1c9 - 1.1c final, hopefully
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index c41e5e2661..825917f8be 100644
--- a/parse.y
+++ b/parse.y
@@ -1653,7 +1653,7 @@ yycompile(f)
eval_tree = 0;
newline_seen = 0;
- sourcefile = strdup(f);
+ sourcefile = f;
rb_in_compile = 1;
n = yyparse();
rb_in_compile = 0;
@@ -1686,7 +1686,7 @@ compile_file(f, file, start)
lex_pbeg = lex_p = lex_pend = 0;
sourceline = start;
- return yycompile(f);
+ return yycompile(strdup(f));
}
static int