Commit d3e17eed authored by Zhang Xiaohui's avatar Zhang Xiaohui

Check if irep->reps is NULL in lv_defined_p

parent 3d8350f9
......@@ -773,9 +773,11 @@ lv_defined_p(const mrb_irep *irep)
if (irep->lv) { return TRUE; }
if (irep->reps) {
for (i = 0; i < irep->rlen; ++i) {
if (lv_defined_p(irep->reps[i])) { return TRUE; }
}
}
return FALSE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment