From: Bram Moolenaar Date: Wed, 1 Jul 2020 11:15:24 +0000 (+0200) Subject: patch 8.2.1104: Coverity warnts for possible NULL pointer use X-Git-Tag: v8.2.1104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11b6600c88165c70d9ccbbdd4d9c96e8266e365f;p=vim patch 8.2.1104: Coverity warnts for possible NULL pointer use Problem: Coverity warnts for possible NULL pointer use. Solution: Check "pbyts" is not NULL. --- diff --git a/src/spellsuggest.c b/src/spellsuggest.c index 6f9a75698..0821dc62c 100644 --- a/src/spellsuggest.c +++ b/src/spellsuggest.c @@ -1406,7 +1406,8 @@ suggest_trie_walk( tword[sp->ts_twordlen] = NUL; if (sp->ts_prefixdepth <= PFD_NOTSPECIAL - && (sp->ts_flags & TSF_PREFIXOK) == 0) + && (sp->ts_flags & TSF_PREFIXOK) == 0 + && pbyts != NULL) { // There was a prefix before the word. Check that the prefix // can be used with this word. diff --git a/src/version.c b/src/version.c index 53bb772a9..4c3ab9639 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1104, /**/ 1103, /**/