correction fix: don't try to create edits for an empty string

This commit is contained in:
Wolfgang Bumiller 2013-01-10 21:09:44 +01:00
parent 0616bb9468
commit fa90d2d06e

View file

@ -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 {