diff options
author | nicm <nicm> | 2017-05-12 13:29:05 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-05-12 13:29:05 +0000 |
commit | ffd8beb6f6bbac1b06948e6ce8d0ff116a7fd021 (patch) | |
tree | 66e8aef15ac06ee812ecaa6f5f2bf7a6cba7a784 /screen-write.c | |
parent | 5d3cf2ff152fd40269a333eb1a32316ad2553b63 (diff) | |
download | rtmux-ffd8beb6f6bbac1b06948e6ce8d0ff116a7fd021.tar.gz rtmux-ffd8beb6f6bbac1b06948e6ce8d0ff116a7fd021.tar.bz2 rtmux-ffd8beb6f6bbac1b06948e6ce8d0ff116a7fd021.zip |
Need to clear tty context before using it.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c index 9d710397..894da4b7 100644 --- a/screen-write.c +++ b/screen-write.c @@ -390,6 +390,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; |