diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-01 13:15:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-01 13:15:24 +0200 |
commit | 11b6600c88165c70d9ccbbdd4d9c96e8266e365f (patch) | |
tree | b695de86eaeaf712ab874fa696213e1daf2b1fe2 /src/spellsuggest.c | |
parent | e707c882b23a53d2c1f0d1f7fc3a7be247aca614 (diff) |
patch 8.2.1104: Coverity warnts for possible NULL pointer usev8.2.1104
Problem: Coverity warnts for possible NULL pointer use.
Solution: Check "pbyts" is not NULL.
Diffstat (limited to 'src/spellsuggest.c')
-rw-r--r-- | src/spellsuggest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spellsuggest.c b/src/spellsuggest.c index 6f9a756984..0821dc62cb 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. |