summaryrefslogtreecommitdiff
path: root/coro.c
diff options
context:
space:
mode:
authorroot <root>2011-05-30 02:21:54 +0000
committerroot <root>2011-05-30 02:21:54 +0000
commit4629f0317532027f90b394ef51f76df36050f39e (patch)
tree5dd033f7847e11397b74a4a5e92c67e3cdd08c6a /coro.c
parente67a54d9b79d17dd9b4309570d19e6bdc170626c (diff)
*** empty log message ***
Diffstat (limited to 'coro.c')
-rw-r--r--coro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/coro.c b/coro.c
index cd79d58..79e2ddc 100644
--- a/coro.c
+++ b/coro.c
@@ -307,6 +307,7 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz
#endif
ctx->sp -= NUM_SAVED;
+ memset (ctx->sp, 0, sizeof (*ctx->sp) * NUM_SAVED);
# elif CORO_UCONTEXT