Skip to content

Commit

Permalink
Assign to local variable first; cosmetic change.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 21, 2017
1 parent c900fff commit 95229ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mrbgems/mruby-fiber/src/fiber.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95229ee

Please sign in to comment.