From 5dc987c3018e7631b8de9681848584dc79ce9cfb Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 20 Jul 2020 21:18:35 -0400 Subject: [PATCH] chore: remove extra memset --- runtime/include/arch/context.h | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/include/arch/context.h b/runtime/include/arch/context.h index 43f5534..6bacce6 100644 --- a/runtime/include/arch/context.h +++ b/runtime/include/arch/context.h @@ -52,7 +52,6 @@ arch_mcontext_restore(mcontext_t *active_context, struct arch_context *sandbox_c /* Restore mcontext */ memcpy(active_context, &sandbox_context->mctx, sizeof(mcontext_t)); - memset(&sandbox_context->mctx, 0, sizeof(mcontext_t)); sandbox_context->variant = arch_context_running; }