[前][次][番号順一覧][スレッド一覧]

ruby-changes:38653

From: mame <ko1@a...>
Date: Wed, 3 Jun 2015 01:29:02 +0900 (JST)
Subject: [ruby-changes:38653] mame:r50734 (trunk): * vm_method.c (rb_method_definition_set): remove a double assignment.

mame	2015-06-03 01:28:50 +0900 (Wed, 03 Jun 2015)

  New Revision: 50734

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50734

  Log:
    * vm_method.c (rb_method_definition_set): remove a double assignment.
      Coverity Scan found this bug.

  Modified files:
    trunk/ChangeLog
    trunk/vm_method.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50733)
+++ ChangeLog	(revision 50734)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun  3 01:10:38 2015  Yusuke Endoh  <mame@t...>
+
+	* 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@a...>
 
 	* vm_method.c (rb_alias): rename parameter names.
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 50733)
+++ vm_method.c	(revision 50734)
@@ -251,7 +251,7 @@ rb_method_definition_set(rb_method_defin https://github.com/ruby/ruby/blob/trunk/vm_method.c#L251
       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;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]