forked from github/server
crashbug, von default_order änderung verursacht
This commit is contained in:
parent
3460cf5b82
commit
caa658a334
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue