mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
9c0626fa90
commit
3bb3fa4051
1 changed files with 2 additions and 1 deletions
3
eval.c
3
eval.c
|
@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue