summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-04 15:23:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-04 15:23:26 +0000
commit7ac17d25dd06c98f336397e807696baeea2daa99 (patch)
treeddd501537e4d918e4444c433f2a267b7fa6a73e0
parenta373bf8d42c482fb69acb7d81d0e021f0d7bcf3a (diff)
downloadruby-7ac17d25dd06c98f336397e807696baeea2daa99.tar.gz
ruby-7ac17d25dd06c98f336397e807696baeea2daa99.tar.xz
ruby-7ac17d25dd06c98f336397e807696baeea2daa99.zip
* parse.y (yycompile): strdup()'ed twice.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8166d0f14..0055006ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jan 5 00:19:12 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
+
+ * parse.y (yycompile): strdup()'ed twice.
+
Wed Jan 2 23:34:25 2002 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/mkmf.rb (create_makefile): add -I. to CPPFLAGS.
diff --git a/parse.y b/parse.y
index c3c9b8482..c65633be6 100644
--- a/parse.y
+++ b/parse.y
@@ -2118,8 +2118,6 @@ yycompile(f, line)
int n;
NODE *node = 0;
- f = strdup(f);
-
if (!compile_for_eval && rb_safe_level() == 0 &&
rb_const_defined(rb_cObject, rb_intern("SCRIPT_LINES__"))) {
VALUE hash, fname;