mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +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;
|
||||
|
||||
for (; itr < rows; itr++) {
|
||||
if (!array[itr][0])
|
||||
continue;
|
||||
if (vec_size(corr->edits) > itr+1)
|
||||
end = corr->edits[itr+1];
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue