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

ruby-changes:35902

From: akr <ko1@a...>
Date: Thu, 16 Oct 2014 22:46:10 +0900 (JST)
Subject: [ruby-changes:35902] akr:r47983 (trunk): * vm_backtrace.c (id2str): Fix a variable name.

akr	2014-10-16 22:45:53 +0900 (Thu, 16 Oct 2014)

  New Revision: 47983

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

  Log:
    * vm_backtrace.c (id2str): Fix a variable name.
      [ruby-dev:48642] [Bug #10389]

  Modified files:
    trunk/ChangeLog
    trunk/vm_backtrace.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47982)
+++ ChangeLog	(revision 47983)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 16 22:43:12 2014  Tanaka Akira  <akr@f...>
+
+	* vm_backtrace.c (id2str): Fix a variable name.
+	  [ruby-dev:48642] [Bug #10389]
+
 Thu Oct 16 20:01:26 2014  Tanaka Akira  <akr@f...>
 
 	* test/ruby/envutil.rb (assert_pattern_list): Show number of matched
Index: vm_backtrace.c
===================================================================
--- vm_backtrace.c	(revision 47982)
+++ vm_backtrace.c	(revision 47983)
@@ -27,7 +27,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L27
 id2str(ID id)
 {
     VALUE str = rb_id2str(id);
-    if (!id) return Qnil;
+    if (!str) return Qnil;
     return str;
 }
 #define rb_id2str(id) id2str(id)

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

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