]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - correct.c
correction fix: don't try to create edits for an empty string
[xonotic/gmqcc.git] / correct.c
index 2062a150e261945e1071c03ffdba0dc338590f43..aa94ee697081fb861f3fc438d3524f2cd0d70463 100644 (file)
--- 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 {