diff options
author | ache <ache@FreeBSD.org> | 1994-10-19 04:45:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-19 04:45:41 +0000 |
commit | 9215905d653a6f8d66b929a9bfbbbd6eaba12865 (patch) | |
tree | 15873620e8c172728a970f97ac59b728845f8697 /gnu/lib/libdialog/kernel.c | |
parent | 52d7f2c0cdb6b2fd4278b62919fde06b047c1815 (diff) | |
download | FreeBSD-src-9215905d653a6f8d66b929a9bfbbbd6eaba12865.zip FreeBSD-src-9215905d653a6f8d66b929a9bfbbbd6eaba12865.tar.gz |
Don't exit silently, if initscr failed; put error message
Diffstat (limited to 'gnu/lib/libdialog/kernel.c')
-rw-r--r-- | gnu/lib/libdialog/kernel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/kernel.c b/gnu/lib/libdialog/kernel.c index 25cf4b4..6f23b0f 100644 --- a/gnu/lib/libdialog/kernel.c +++ b/gnu/lib/libdialog/kernel.c @@ -99,8 +99,10 @@ void init_dialog(void) exit(-1); #endif - if (initscr() == NULL) /* Init curses */ + if (initscr() == NULL) { /* Init curses */ + fprintf(stderr, "\nCurses initialization error.\n"); exit(-1); + } keypad(stdscr, TRUE); cbreak(); noecho(); |