mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #448 from masamitsu-murase/check_iv_tbl
Check iv in mrb_iv_remove.
This commit is contained in:
+1
-1
@@ -549,7 +549,7 @@ mrb_iv_remove(mrb_state *mrb, mrb_value obj, mrb_sym sym)
|
||||
iv_tbl *t = mrb_obj_ptr(obj)->iv;
|
||||
mrb_value val;
|
||||
|
||||
if (iv_del(mrb, t, sym, &val)) {
|
||||
if (t && iv_del(mrb, t, sym, &val)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user