Skip to content
Permalink
Browse files
Assign to local variable first; cosmetic change.
  • Loading branch information
matz committed Apr 21, 2017
1 parent c900fff commit 95229ee164e4a4167c2f98a75b59528284614859
Showing 1 changed file with 3 additions and 3 deletions.
@@ -82,9 +82,9 @@ fiber_init(mrb_state *mrb, mrb_value self)
mrb_raise(mrb, E_FIBER_ERROR, "tried to create Fiber from C defined method");
}

f->cxt = (struct mrb_context*)mrb_malloc(mrb, sizeof(struct mrb_context));
*f->cxt = mrb_context_zero;
c = f->cxt;
c = (struct mrb_context*)mrb_malloc(mrb, sizeof(struct mrb_context));
*c = mrb_context_zero;
f->cxt = c;

/* initialize VM stack */
slen = FIBER_STACK_INIT_SIZE;

0 comments on commit 95229ee

Please sign in to comment.