chore: remove extra memset

main
Sean McBride 4 years ago
parent 42566b1c6e
commit 5dc987c301

@ -52,7 +52,6 @@ arch_mcontext_restore(mcontext_t *active_context, struct arch_context *sandbox_c
/* Restore mcontext */ /* Restore mcontext */
memcpy(active_context, &sandbox_context->mctx, sizeof(mcontext_t)); memcpy(active_context, &sandbox_context->mctx, sizeof(mcontext_t));
memset(&sandbox_context->mctx, 0, sizeof(mcontext_t));
sandbox_context->variant = arch_context_running; sandbox_context->variant = arch_context_running;
} }

Loading…
Cancel
Save