From 4384df95d32024205ca572f94754df30d18128c3 Mon Sep 17 00:00:00 2001 From: "Justin R. Cutler" Date: Sun, 10 Apr 2016 21:48:25 -0400 Subject: [PATCH] Fixing uninitialized coroutine status --- src/coroutine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coroutine.c b/src/coroutine.c index a12f296..cfbdee3 100644 --- a/src/coroutine.c +++ b/src/coroutine.c @@ -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;