From e6b406b7aaa54e1f5db4a72063c829072d47385c Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 19 May 2008 16:14:30 +0000 Subject: * parse.y (assignable_gen): when "self = 1" was evalueted, unnecessary error message was output, which might cause null pointer access. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ parse.y | 4 +++- version.h | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8ae437486..53da48408 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 20 01:07:19 2008 Yusuke Endoh + + * parse.y (assignable_gen): when "self = 1" was evalueted, unnecessary + error message was output, which might cause null pointer access. + Mon May 19 23:32:12 2008 Koichi Sasada * vm.c (invoke_block_from_c): fix call flow. diff --git a/parse.y b/parse.y index f8b96fbdc..31694a371 100644 --- a/parse.y +++ b/parse.y @@ -7752,7 +7752,9 @@ assignable_gen(struct parser_params *parser, ID id, NODE *val) else if (is_class_id(id)) { return NEW_CVASGN(id, val); } - compile_error(PARSER_ARG "identifier %s is not valid to set", rb_id2name(id)); + else { + compile_error(PARSER_ARG "identifier %s is not valid to set", rb_id2name(id)); + } return 0; } diff --git a/version.h b/version.h index 5403280e3..29ddf70ea 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-05-19" +#define RUBY_RELEASE_DATE "2008-05-20" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080519 +#define RUBY_RELEASE_CODE 20080520 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 5 -#define RUBY_RELEASE_DAY 19 +#define RUBY_RELEASE_DAY 20 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- cgit