From b2b855f486dd0b1b11baaea4943116a9d2d7e867 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 15 Sep 2020 14:03:41 +0900 Subject: Fix `warning: instance variable bt_locations not initialized` --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.c b/error.c index be53e8d552..6a9aa2f2c3 100644 --- a/error.c +++ b/error.c @@ -2636,7 +2636,7 @@ exception_loader(VALUE exc, VALUE obj) rb_ivar_foreach(obj, ivar_copy_i, exc); - if (rb_ivar_get(exc, id_bt) == rb_ivar_get(exc, id_bt_locations)) { + if (rb_attr_get(exc, id_bt) == rb_attr_get(exc, id_bt_locations)) { rb_ivar_set(exc, id_bt_locations, Qnil); } -- cgit v1.2.3