diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-17 15:33:57 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-17 15:33:57 +0000 |
commit | a42b5184f3cd1af05392279382b0b581a23de267 (patch) | |
tree | 40dc7076d280b9d5906268db3a9a0198f67af068 /eval_error.c | |
parent | fa07823abbdf85f8cec7a1a08996d8c88c9631e0 (diff) |
merge revision(s) 61567: [Backport #14693]
fix uninitialized variable
Likewise this can easily be noticed if you read the warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r-- | eval_error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c index c44234f30f..cd7a607eaa 100644 --- a/eval_error.c +++ b/eval_error.c @@ -240,7 +240,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; volatile VALUE emesg = Qundef; if (NIL_P(errinfo)) |