diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-21 10:07:30 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-21 22:29:28 +0900 |
| commit | 95229ee164e4a4167c2f98a75b59528284614859 (patch) | |
| tree | 02cfa8d16d24d7c84037b30e729faf12305762aa | |
| parent | c900fff9a15dcc1608927705b85dd1b4499aaf24 (diff) | |
| download | mruby-95229ee164e4a4167c2f98a75b59528284614859.tar.gz mruby-95229ee164e4a4167c2f98a75b59528284614859.zip | |
Assign to local variable first; cosmetic change.
| -rw-r--r-- | mrbgems/mruby-fiber/src/fiber.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-fiber/src/fiber.c b/mrbgems/mruby-fiber/src/fiber.c index b9d4ccdcc..bd1d09d43 100644 --- a/mrbgems/mruby-fiber/src/fiber.c +++ b/mrbgems/mruby-fiber/src/fiber.c @@ -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; |
