summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--vm_method.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 86c82ae..100b0af 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 edcaeed..8afc399 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;