mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
variable.c (mrb_mod_cv_get): c must not be NULL as an argument
This commit is contained in:
+1
-1
@@ -624,7 +624,7 @@ mrb_mod_cv_get(mrb_state *mrb, struct RClass *c, mrb_sym sym)
|
||||
c = c->super;
|
||||
}
|
||||
if (given) return v;
|
||||
if (cls && cls->tt == MRB_TT_SCLASS) {
|
||||
if (cls->tt == MRB_TT_SCLASS) {
|
||||
mrb_value klass;
|
||||
|
||||
klass = mrb_obj_iv_get(mrb, (struct RObject*)cls, MRB_SYM(__attached__));
|
||||
|
||||
Reference in New Issue
Block a user