diff options
| author | blymn <blymn@NetBSD.org> | 2001-01-14 08:12:47 +0000 |
|---|---|---|
| committer | blymn <blymn@NetBSD.org> | 2001-01-14 08:12:47 +0000 |
| commit | 4aa92dbcd14624207d3d88328911ca8c4d8a2a02 (patch) | |
| tree | 1846cfb3a3b5bc0ca32a1460a4173974e92c0eef /lib/libcurses | |
| parent | bf4e8345434ca232c82f7455d3f5f7fa91d55955 (diff) | |
There was a missing check for curscr != NULL, fixed.
Diffstat (limited to 'lib/libcurses')
| -rw-r--r-- | lib/libcurses/tstp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/tstp.c b/lib/libcurses/tstp.c index 30a7f6132f2..173cefa34ff 100644 --- a/lib/libcurses/tstp.c +++ b/lib/libcurses/tstp.c @@ -1,4 +1,4 @@ -/* $NetBSD: tstp.c,v 1.22 2000/12/19 21:34:24 jdc Exp $ */ +/* $NetBSD: tstp.c,v 1.23 2001/01/14 08:12:47 blymn Exp $ */ /* * Copyright (c) 1981, 1993, 1994 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)tstp.c 8.3 (Berkeley) 5/4/94"; #else -__RCSID("$NetBSD: tstp.c,v 1.22 2000/12/19 21:34:24 jdc Exp $"); +__RCSID("$NetBSD: tstp.c,v 1.23 2001/01/14 08:12:47 blymn Exp $"); #endif #endif /* not lint */ @@ -134,7 +134,7 @@ __stopwin(void) if (__tc_mo != NULL) (void) tputs(__tc_mo, 0, __cputchar); - if (curscr->flags & __KEYPAD) + if ((curscr != NULL) && (curscr->flags & __KEYPAD)) (void) tputs(__tc_ke, 0, __cputchar); (void) tputs(__tc_ve, 0, __cputchar); (void) tputs(__tc_te, 0, __cputchar); |
