crashbug, von default_order änderung verursacht

This commit is contained in:
Enno Rehling 2005-05-08 14:41:22 +00:00
parent 3460cf5b82
commit caa658a334
1 changed files with 6 additions and 20 deletions

View File

@ -3250,21 +3250,7 @@ kernel_init(void)
order *
default_order(const struct locale * lang)
{
static struct orders {
const struct locale * lang;
struct order * ord;
struct orders * next;
} * defaults = NULL;
struct orders * olist = defaults;
while (olist) {
if (olist->lang==lang) return olist->ord;
olist = olist->next;
}
olist = (struct orders*)malloc(sizeof(struct orders));
defaults = olist;
olist->next = defaults;
olist->lang = lang;
return olist->ord = parse_order(locale_string(lang, "defaultorder"), lang);
return parse_order(locale_string(lang, "defaultorder"), lang);
}
int