Skip to content
Permalink
Browse files
Skip stack marking at all if c->stack is NULL.
  • Loading branch information
matz committed Apr 10, 2017
1 parent 0cb5015 commit 491d68bb3004eb8d7deec4a3a682b25de0d4afc2
Showing 1 changed file with 1 addition and 0 deletions.
@@ -545,6 +545,7 @@ mark_context_stack(mrb_state *mrb, struct mrb_context *c)
size_t i;
size_t e;

if (c->stack == NULL) return;
e = c->stack - c->stbase;
if (c->ci) e += c->ci->nregs;
if (c->stbase + e > c->stend) e = c->stend - c->stbase;

0 comments on commit 491d68b

Please sign in to comment.