aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 16:28:50 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-02 16:28:50 +0000
commitea0bc53ec3a968d86eb64507ce51577c7f7bceec (patch)
tree6db8ea5338dbfc95f0f2224ffc0d985fbd5c31b2
parent6697ade6576530afecf628cb0f07b68150a53179 (diff)
downloadruby-ea0bc53ec3a968d86eb64507ce51577c7f7bceec.tar.gz
* vm_method.c (rb_method_definition_set): remove a double assignment.
Coverity Scan found this bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--vm_method.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 86c82ae980..100b0afcb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;