diff options
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -721,7 +721,8 @@ rb_check_backtrace(VALUE bt) rb_raise(rb_eTypeError, err); } for (i=0;i<RARRAY_LEN(bt);i++) { - if (!RB_TYPE_P(RARRAY_AREF(bt, i), T_STRING)) { + VALUE e = RARRAY_AREF(bt, i); + if (!RB_TYPE_P(e, T_STRING)) { rb_raise(rb_eTypeError, err); } } |