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
commit012a4d1c9752d133824834e5d854629e7e5addf5 (patch)
treec1b983e8a234061dbd79078c20213416f841b2b4 /eval_error.c
parent5f5aa24363a71568a66159146a6a30a615950ecd (diff)
downloadruby-012a4d1c9752d133824834e5d854629e7e5addf5.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;