Fix undefined error of pointer dereference.

This commit is contained in:
Takeshi Watanabe
2018-04-23 12:06:13 +09:00
parent 2213deeeaa
commit 25c40c2f12
+1
View File
@@ -51,6 +51,7 @@ each_backtrace(mrb_state *mrb, ptrdiff_t ciidx, mrb_code *pc0, each_backtrace_fu
pc = mrb->c->cibase[i].err;
}
else if (i+1 <= ciidx) {
if (!mrb->c->cibase[i + 1].pc) continue;
pc = &mrb->c->cibase[i+1].pc[-1];
}
else {