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:
parent
23893997eb
commit
e314eb04c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3715
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user