mirror of
https://github.com/jrcutler/threadless.io.git
synced 2024-07-07 10:35:49 +00:00
Fixing uninitialized coroutine status
This commit is contained in:
parent
9acc8a43b4
commit
4384df95d3
@ -86,6 +86,7 @@ coroutine_t *coroutine_create(allocator_t *allocator,
|
|||||||
coro = allocation.memory;
|
coro = allocation.memory;
|
||||||
memset(coro, 0, alloc_size);
|
memset(coro, 0, alloc_size);
|
||||||
coro->allocation = allocation;
|
coro->allocation = allocation;
|
||||||
|
coro->status = 0;
|
||||||
coro->deferred = NULL;
|
coro->deferred = NULL;
|
||||||
(void) getcontext(&coro->context);
|
(void) getcontext(&coro->context);
|
||||||
coro->context.uc_stack.ss_sp = coro + 1;
|
coro->context.uc_stack.ss_sp = coro + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user