From fa90d2d06e0c2c7c32071f6b0350df2c6260fdc2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 10 Jan 2013 21:09:44 +0100 Subject: [PATCH] correction fix: don't try to create edits for an empty string --- correct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/correct.c b/correct.c index 2062a15..aa94ee6 100644 --- a/correct.c +++ b/correct.c @@ -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 { -- 2.39.2