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:
parent
f3754dfc2e
commit
b2b855f486
1 changed files with 1 additions and 1 deletions
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue