Type check before `print_backtrace()`

parent bb0b52a5
......@@ -213,6 +213,7 @@ print_backtrace(mrb_state *mrb, mrb_value backtrace)
int i, n;
FILE *stream = stderr;
if (!mrb_array_p(backtrace)) return;
fprintf(stream, "trace:\n");
n = RARRAY_LEN(backtrace);
......
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