Unverified Commit 26dd35be authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #5144 from hifoolno/master

Check if irep->reps is NULL
parents 3d8350f9 eca62665
......@@ -545,8 +545,10 @@ codedump_recur(mrb_state *mrb, const mrb_irep *irep)
int i;
codedump(mrb, irep);
for (i=0; i<irep->rlen; i++) {
codedump_recur(mrb, irep->reps[i]);
if (irep->reps) {
for (i=0; i<irep->rlen; i++) {
codedump_recur(mrb, irep->reps[i]);
}
}
}
#endif
......
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