diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-10 07:55:40 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-10 07:55:40 +0000 |
| commit | a33e6f4c60520e64739b1557d6a685414c097e38 (patch) | |
| tree | ba2af51029a01ca4ac835617ea86c36621db7d64 | |
| parent | 3e93f1452c9cc6eb9da0eba585fbb10ab3024d28 (diff) | |
| download | ruby-a33e6f4c60520e64739b1557d6a685414c097e38.tar.gz ruby-a33e6f4c60520e64739b1557d6a685414c097e38.tar.xz ruby-a33e6f4c60520e64739b1557d6a685414c097e38.zip | |
* ruby.c (load_file): avoid SEGV on '#' only input.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ruby.c | 1 | ||||
| -rw-r--r-- | version.h | 4 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun Feb 10 16:52:53 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> + + * ruby.c (load_file): avoid SEGV on '#' only input. + Fri Feb 8 23:07:23 2002 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (rb_eval): singleton chech should be moved from yycompile @@ -794,6 +794,7 @@ load_file(fname, script) c = rb_io_getc(f); if (c == INT2FIX('#')) { line = rb_io_gets(f); + if (NIL_P(line)) return; line_start++; if (RSTRING(line)->len > 2 && RSTRING(line)->ptr[0] == '!') { @@ -1,4 +1,4 @@ #define RUBY_VERSION "1.7.2" -#define RUBY_RELEASE_DATE "2002-02-09" +#define RUBY_RELEASE_DATE "2002-02-10" #define RUBY_VERSION_CODE 172 -#define RUBY_RELEASE_CODE 20020209 +#define RUBY_RELEASE_CODE 20020210 |
