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

ruby-changes:49447

From: shyouhei <ko1@a...>
Date: Tue, 2 Jan 2018 20:29:35 +0900 (JST)
Subject: [ruby-changes:49447] shyouhei:r61567 (trunk): fix uninitialized variable

shyouhei	2018-01-02 15:42:03 +0900 (Tue, 02 Jan 2018)

  New Revision: 61567

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

  Log:
    fix uninitialized variable
    
    Likewise this can easily be noticed if you read the warnings.

  Modified files:
    trunk/eval_error.c
Index: eval_error.c
===================================================================
--- eval_error.c	(revision 61566)
+++ eval_error.c	(revision 61567)
@@ -220,7 +220,7 @@ void https://github.com/ruby/ruby/blob/trunk/eval_error.c#L220
 rb_ec_error_print(rb_execution_context_t * volatile ec, volatile VALUE errinfo)
 {
     volatile int raised_flag = ec->raised_flag;
-    volatile VALUE errat;
+    volatile VALUE errat = Qundef;
 
     if (NIL_P(errinfo))
 	return;

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

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