1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix warning: instance variable bt_locations not initialized

This commit is contained in:
Kazuhiro NISHIYAMA 2020-09-15 14:03:41 +09:00
parent f3754dfc2e
commit b2b855f486
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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);
}