1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Check initscr() for NULL

This commit is contained in:
Andrey A. Chernov 1994-10-19 04:10:48 +00:00
parent 23893997eb
commit e314eb04c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3715

View File

@ -99,7 +99,8 @@ void init_dialog(void)
exit(-1);
#endif
initscr(); /* Init curses */
if (initscr() == NULL) /* Init curses */
exit(-1);
keypad(stdscr, TRUE);
cbreak();
noecho();