[Spice-devel] [PATCH spice-gtk] windows: initialize co->ret to not randomly release fiber
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Dec 14 12:59:01 PST 2011
---
gtk/coroutine_winfibers.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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;
--
1.7.7.3
More information about the Spice-devel
mailing list