Browse Source

Fixing uninitialized coroutine status

master
Justin R. Cutler 4 years ago
parent
commit
4384df95d3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/coroutine.c

+ 1
- 0
src/coroutine.c View File

@@ -86,6 +86,7 @@ coroutine_t *coroutine_create(allocator_t *allocator,
coro = allocation.memory;
memset(coro, 0, alloc_size);
coro->allocation = allocation;
coro->status = 0;
coro->deferred = NULL;
(void) getcontext(&coro->context);
coro->context.uc_stack.ss_sp = coro + 1;


Loading…
Cancel
Save