diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-08-14 11:44:20 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-08-14 11:47:22 +0900 |
commit | 0623e2b7cc621b1733a760b72af246b06c30cf96 (patch) | |
tree | 94724732da41c9f075b773ecc6d326fa36bb8807 /eval.c | |
parent | c744b626985f5d78c6d8d8830b9aee2898412d7c (diff) |
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]".
```
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |