forked from github/server
fix a TODO and a coverity warning.
This commit is contained in:
parent
b4fb721db4
commit
7ddb7bc181
1 changed files with 1 additions and 3 deletions
|
@ -504,9 +504,7 @@ order *default_order(const struct locale *lang)
|
|||
kwd = findkeyword(str);
|
||||
}
|
||||
if (kwd != NOKEYWORD) {
|
||||
/* TODO: why is there a copy_order made here? */
|
||||
order *result = create_order(kwd, lang, NULL);
|
||||
return copy_order(result);
|
||||
return create_order(kwd, lang, NULL);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue