diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | vm_method.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Jun 3 01:10:38 2015 Yusuke Endoh <mame@tsg.ne.jp> + + * vm_method.c (rb_method_definition_set): remove a double assignment. + Coverity Scan found this bug. + Wed Jun 3 00:04:51 2015 Koichi Sasada <ko1@atdot.net> * vm_method.c (rb_alias): rename parameter names. diff --git a/vm_method.c b/vm_method.c index edcaeed6ac..8afc39901e 100644 --- a/vm_method.c +++ b/vm_method.c @@ -251,7 +251,7 @@ rb_method_definition_set(rb_method_definition_t *def, void *opts) case VM_METHOD_TYPE_ATTRSET: case VM_METHOD_TYPE_IVAR: { - rb_thread_t *th = th = GET_THREAD(); + rb_thread_t *th = GET_THREAD(); rb_control_frame_t *cfp; int line; |