Need to clear tty context before using it.

This commit is contained in:
nicm 2017-05-12 13:29:05 +00:00 committed by Nicholas Marriott
parent 7c07f5f640
commit 90f2a417af

View File

@ -387,6 +387,8 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx)
{
struct screen *s = ctx->s;
memset(ttyctx, 0, sizeof *ttyctx);
ttyctx->wp = ctx->wp;
ttyctx->ocx = s->cx;