diff --git a/ChangeLog b/ChangeLog index 71f8e0095f..f4d758f2a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Mar 15 02:09:31 2009 Nobuyoshi Nakada + + * proc.c (bmcall): should not uninitialized variable. a patch from + pegacorn at [ruby-dev:38169]. + Sat Mar 14 18:25:18 2009 Nobuyoshi Nakada * util.c (ruby_scan_oct, ruby_scan_hex): use size_t. diff --git a/proc.c b/proc.c index f43c438511..9f2a46416d 100644 --- a/proc.c +++ b/proc.c @@ -1647,8 +1647,8 @@ bmcall(VALUE args, VALUE method) else { argc = check_argc(RARRAY_LEN(args)); } - ret = rb_method_call(argc, RARRAY_PTR(a), method); - a = args; + ret = rb_method_call(argc, RARRAY_PTR(args), method); + RB_GC_GUARD(a) = args; return ret; } diff --git a/version.h b/version.h index 78a61bc2e4..fb153c45e5 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_RELEASE_DATE "2009-03-14" +#define RUBY_RELEASE_DATE "2009-03-15" #define RUBY_PATCHLEVEL -1 #define RUBY_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 14 +#define RUBY_RELEASE_DAY 15 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];