From: Bram Moolenaar Date: Sun, 11 Jul 2010 16:01:39 +0000 (+0200) Subject: Fix crash in generating spell .sug file. X-Git-Tag: v7.3~273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc781a79b4e04e7a2973b7deaf61cb35c64683e7;p=vim Fix crash in generating spell .sug file. --- 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; }