--- a/ncurses.c +++ b/ncurses.c @@ -29,14 +29,14 @@ { if (!setlocale (LC_CTYPE, "")) { perror ("SETLOCALE"); - return EXIT_FAILURE; + exit (EXIT_FAILURE); } return EXIT_SUCCESS; } wchar_t func (WINDOW * win) { - wchar_t guess; + wchar_t guess = '\0'; char dest[6];