Skip to content
Permalink
Browse files
Type check before print_backtrace()
  • Loading branch information
matz committed May 23, 2017
1 parent bb0b52a commit 24a24a41dd7e97bacb225e598b74580d351d825d
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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.