aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:42:03 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:42:03 +0000
commit13af45c0d69734c753732433e6715f9bed77cef0 (patch)
treec1b983e8a234061dbd79078c20213416f841b2b4 /eval_error.c
parent54983030de546edb2547e33d03d0611ddb407e4a (diff)
downloadruby-13af45c0d69734c753732433e6715f9bed77cef0.tar.gz
fix uninitialized variable
Likewise this can easily be noticed if you read the warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 646e55ffb3..0d3e8b3662 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -220,7 +220,7 @@ void
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;