diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2001-05-27 00:57:25 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2001-05-27 00:57:25 +0000 |
| commit | 83d94cdf696669820eb76170a01e4d35ece98ab9 (patch) | |
| tree | d440dd065d87f7f15fc698f63385899a5c8b57f6 /sys/dev/syscons | |
| parent | 84d337151e7763a6612e8b3cd9bfba0f46e2fb47 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index f3305c4eb8e96..685b992d54f6c 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -124,7 +124,8 @@ SYSCTL_INT(_machdep, OID_AUTO, enable_panic_key, CTLFLAG_RW, &enable_panic_key, #define SC_CONSOLECTL 255 -#define VIRTUAL_TTY(sc, x) (SC_DEV((sc), (x))->si_tty) +#define VIRTUAL_TTY(sc, x) (SC_DEV((sc), (x)) != NULL ? \ + SC_DEV((sc), (x))->si_tty : NULL) static int debugger; |
