mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
correction fix: don't try to create edits for an empty string
This commit is contained in:
parent
0616bb9468
commit
fa90d2d06e
1 changed files with 2 additions and 0 deletions
|
@ -478,6 +478,8 @@ static char **correct_known(correction_t *corr, correct_trie_t* table, char **ar
|
||||||
char **end = NULL;
|
char **end = NULL;
|
||||||
|
|
||||||
for (; itr < rows; itr++) {
|
for (; itr < rows; itr++) {
|
||||||
|
if (!array[itr][0])
|
||||||
|
continue;
|
||||||
if (vec_size(corr->edits) > itr+1)
|
if (vec_size(corr->edits) > itr+1)
|
||||||
end = corr->edits[itr+1];
|
end = corr->edits[itr+1];
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue