Commit d3e17eed authored by Zhang Xiaohui's avatar Zhang Xiaohui

Check if irep->reps is NULL in lv_defined_p

parent 3d8350f9
...@@ -773,8 +773,10 @@ lv_defined_p(const mrb_irep *irep) ...@@ -773,8 +773,10 @@ lv_defined_p(const mrb_irep *irep)
if (irep->lv) { return TRUE; } if (irep->lv) { return TRUE; }
for (i = 0; i < irep->rlen; ++i) { if (irep->reps) {
if (lv_defined_p(irep->reps[i])) { return TRUE; } for (i = 0; i < irep->rlen; ++i) {
if (lv_defined_p(irep->reps[i])) { return TRUE; }
}
} }
return FALSE; 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