Avoid illegal memory access in spell suggestion. (Dominique Pelle)
diff --git a/src/spell.c b/src/spell.c
index 8ae264d..b7e91ae 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -11658,7 +11658,7 @@
 		     * words, the edit distance and then add them. */
 		    add_sound_suggest(su, preword, sp->ts_score, lp);
 		}
-		else
+		else if (sp->ts_fidx > 0)
 		{
 		    /* Give a penalty when changing non-word char to word
 		     * char, e.g., "thes," -> "these". */