summaryrefslogtreecommitdiffstats
path: root/tty-acs.c
diff options
context:
space:
mode:
authornicm <nicm>2014-10-02 08:36:26 +0000
committernicm <nicm>2014-10-02 08:36:26 +0000
commit2f19df09b1850d80e60f2d37f0b7f0db22eae6f7 (patch)
tree571344ba49bdf96207dd987de238298b16b908d4 /tty-acs.c
parent045d0c3b9f616fe76b68d4551a6d66f410e760e8 (diff)
Copy ACS characters as UTF-8, from Balazs Kezes.
Diffstat (limited to 'tty-acs.c')
-rw-r--r--tty-acs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-acs.c b/tty-acs.c
index 13dbbc72..5d03c3eb 100644
--- a/tty-acs.c
+++ b/tty-acs.c
@@ -81,7 +81,7 @@ tty_acs_get(struct tty *tty, u_char ch)
struct tty_acs_entry *entry;
/* If not a UTF-8 terminal, use the ACS set. */
- if (!(tty->flags & TTY_UTF8)) {
+ if (tty != NULL && !(tty->flags & TTY_UTF8)) {
if (tty->term->acs[ch][0] == '\0')
return (NULL);
return (&tty->term->acs[ch][0]);