Permalink
Browse files

Type check before `print_backtrace()`

  • Loading branch information...
matz committed May 1, 2017
1 parent bb0b52a commit 24a24a41dd7e97bacb225e598b74580d351d825d
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/backtrace.c
View
@@ -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);

0 comments on commit 24a24a4

Please sign in to comment.