degesch: fix a brutal bug

This commit is contained in:
Přemysl Eric Janouch 2015-05-05 05:15:08 +02:00
parent 8574c7f450
commit 53894e3909
1 changed files with 1 additions and 1 deletions

View File

@ -5038,7 +5038,7 @@ init_poller_events (struct app_context *ctx)
poller_fd_init (&ctx->tty_event, &ctx->poller, STDIN_FILENO); poller_fd_init (&ctx->tty_event, &ctx->poller, STDIN_FILENO);
ctx->tty_event.dispatcher = (poller_fd_fn) on_tty_readable; ctx->tty_event.dispatcher = (poller_fd_fn) on_tty_readable;
ctx->tty_event.user_data = &ctx; ctx->tty_event.user_data = ctx;
poller_fd_set (&ctx->tty_event, POLLIN); poller_fd_set (&ctx->tty_event, POLLIN);
} }