From dc781a79b4e04e7a2973b7deaf61cb35c64683e7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 11 Jul 2010 18:01:39 +0200 Subject: Fix crash in generating spell .sug file. --- src/spell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/spell.c') diff --git a/src/spell.c b/src/spell.c index b4d6ca72d..6d4d47ea2 100644 --- a/src/spell.c +++ b/src/spell.c @@ -7557,7 +7557,8 @@ tree_add_word(spin, word, root, flags, region, affixID) np->wn_refs = node->wn_refs; node->wn_refs = 1; } - *prev = np; + if (prev != NULL) + *prev = np; np->wn_sibling = node; node = np; } -- cgit v1.2.1