windows: initialize co->ret to not randomly release fiber

This commit is contained in:
Marc-André Lureau 2011-12-14 21:59:01 +01:00 committed by Marc-André Lureau
parent a1ad3f06e5
commit 4b8102e9fe

View File

@ -60,6 +60,7 @@ int coroutine_init(struct coroutine *co)
}
co->fiber = CreateFiber(0, &coroutine_trampoline, co);
co->ret = 0;
if (co->fiber == NULL)
return -1;