diff options
Diffstat (limited to 'loader/lang.c')
-rw-r--r-- | loader/lang.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/loader/lang.c b/loader/lang.c index 281b921e0..306c2ae82 100644 --- a/loader/lang.c +++ b/loader/lang.c @@ -85,6 +85,11 @@ static void loadLanguageList(int flags) { int lineNum = 0; f = fopen(file, "r"); + if (!f) { + newtWinMessage(_("Error"), _("OK"), "cannot open %s: %s", + file, strerror (errno)); + return; + } while (fgets(line, sizeof(line), f)) { lineNum++; @@ -406,7 +411,7 @@ int chooseKeyboard(char ** keymap, char ** kbdtypep, int flags) { int j; #endif - if (FL_SERIAL (flags)) return 0; + if (FL_SERIAL (flags)) return LOADER_NOOP; /*if (testing) return 0;*/ |