From 4b8102e9fedc598334f49edfecfe7ae3f035d425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 14 Dec 2011 21:59:01 +0100 Subject: [PATCH] windows: initialize co->ret to not randomly release fiber --- gtk/coroutine_winfibers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/coroutine_winfibers.c b/gtk/coroutine_winfibers.c index a22da3b..a4cd14b 100644 --- a/gtk/coroutine_winfibers.c +++ b/gtk/coroutine_winfibers.c @@ -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;