Assign to local variable first; cosmetic change.

parent c900fff9
...@@ -82,9 +82,9 @@ fiber_init(mrb_state *mrb, mrb_value self) ...@@ -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"); 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)); c = (struct mrb_context*)mrb_malloc(mrb, sizeof(struct mrb_context));
*f->cxt = mrb_context_zero; *c = mrb_context_zero;
c = f->cxt; f->cxt = c;
/* initialize VM stack */ /* initialize VM stack */
slen = FIBER_STACK_INIT_SIZE; slen = FIBER_STACK_INIT_SIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment