summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-12-17 15:56:01 +0000
committerMatt Wilson <msw@redhat.com>2002-12-17 15:56:01 +0000
commitf40bea21826bee9bf50338f820ce45eec46fb989 (patch)
tree44860d1c6da6a84aa79cbf485a5d6e1a10da8eee /loader2
parent3f06ce08dd9874bef1cacb00c9f260362ec20d97 (diff)
downloadanaconda-f40bea21826bee9bf50338f820ce45eec46fb989.tar.gz
anaconda-f40bea21826bee9bf50338f820ce45eec46fb989.tar.xz
anaconda-f40bea21826bee9bf50338f820ce45eec46fb989.zip
fix language loading
Diffstat (limited to 'loader2')
-rw-r--r--loader2/lang.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/loader2/lang.c b/loader2/lang.c
index de1cd631c..116efabae 100644
--- a/loader2/lang.c
+++ b/loader2/lang.c
@@ -133,13 +133,14 @@ void loadLanguage (char * file, int flags) {
int fd, hash, rc;
char * key = getenv("LANGKEY");
- if (!key || !strcmp(key, "en")) {
- if (strings) {
- free(strings), strings = NULL;
- numStrings = allocedStrings = 0;
- }
- return;
+ if (strings) {
+ free(strings), strings = NULL;
+ numStrings = allocedStrings = 0;
}
+
+ /* english requires no files */
+ if (!strcmp(key, "en"))
+ return;
if (!file) {
file = filename;