From 68627ddb5eca01c831a679b1ab425a7411ef48a6 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 22 Feb 2015 20:49:31 +0100 Subject: Don't die if the terminal cannot be detected --- ponymap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ponymap.c b/ponymap.c index c7f1b71..9635fe9 100644 --- a/ponymap.c +++ b/ponymap.c @@ -64,7 +64,8 @@ init_terminal (void) if ((g_terminal.stdout_is_tty = isatty (STDOUT_FILENO))) tty_fd = STDOUT_FILENO; - if (tty_fd == -1 || setupterm (NULL, tty_fd, NULL) == ERR) + int err; + if (tty_fd == -1 || setupterm (NULL, tty_fd, &err) == ERR) return; // Make sure all terminal features used by us are supported -- cgit v1.2.3-70-g09d2