aboutsummaryrefslogtreecommitdiff
path: root/tty-acs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty-acs.c')
-rw-r--r--tty-acs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty-acs.c b/tty-acs.c
index ae84f0d4..5d03c3eb 100644
--- a/tty-acs.c
+++ b/tty-acs.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $OpenBSD$ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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]);