mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress Uninitialized variables by Coverity Scan
Coverity Scan says: ``` ** CID 1452284: Uninitialized variables (UNINIT) /eval.c: 223 in rb_ec_cleanup() ``` ``` >>> CID 1452284: Uninitialized variables (UNINIT) >>> Using uninitialized value "errs[1]". ```
This commit is contained in:
parent
c744b62698
commit
0623e2b7cc
1 changed files with 1 additions and 1 deletions
2
eval.c
2
eval.c
|
@ -186,7 +186,7 @@ static int
|
|||
rb_ec_cleanup(rb_execution_context_t *ec, volatile int ex)
|
||||
{
|
||||
int state;
|
||||
volatile VALUE errs[2];
|
||||
volatile VALUE errs[2] = { Qundef, Qundef };
|
||||
int nerr;
|
||||
rb_thread_t *th = rb_ec_thread_ptr(ec);
|
||||
volatile int sysex = EXIT_SUCCESS;
|
||||
|
|
Loading…
Add table
Reference in a new issue