Fixing uninitialized coroutine status

This commit is contained in:
Justin R. Cutler 2016-04-10 21:48:25 -04:00
父節點 9acc8a43b4
當前提交 4384df95d3
共有 1 個檔案被更改,包括 1 行新增0 行删除

查看文件

@ -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;