diff options
author | Yusuke Endoh <[email protected]> | 2019-09-07 09:18:38 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2019-09-07 09:20:27 +0900 |
commit | 3bb3fa4051c754af1a26f023a902d1ce67fe964e (patch) | |
tree | 8d6e3183f0ff89c24a2def33fe40a1fcb11b8922 /eval.c | |
parent | 9c0626fa909b57e43a476aa78171e140ae09d31f (diff) |
eval.c (rb_rescue2): fix a probably wrong return
This return skips `va_end(ap)`, which is not intended, I guess.
Coverity Scan found this.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -950,8 +950,9 @@ rb_rescue2(VALUE (* b_proc) (VALUE), VALUE data1, { va_list ap; va_start(ap, data2); - return rb_vrescue2(b_proc, data1, r_proc, data2, ap); + VALUE ret = rb_vrescue2(b_proc, data1, r_proc, data2, ap); va_end(ap); + return ret; } /*! |