зеркало из https://github.com/github/ruby.git
Fix `warning: instance variable bt_locations not initialized`
This commit is contained in:
Родитель
f3754dfc2e
Коммит
b2b855f486
2
error.c
2
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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче