# HG changeset patch # User Bram Moolenaar # Date 1641314704 -3600 # Node ID 61f686b38df9ee0e12bb7c0c2d00b3ec55262ded # Parent 6902cb522a1270de9ec0212a03fcc7e9b7b4a20b patch 8.2.4000: Coverity warns for checking for NULL pointer after using it Commit: https://github.com/vim/vim/commit/fcd1635a4680d53090baa433996954bfe0642366 Author: Bram Moolenaar Date: Tue Jan 4 16:44:56 2022 +0000 patch 8.2.4000: Coverity warns for checking for NULL pointer after using it Problem: Coverity warns for checking for NULL pointer after using it. Solution: Remove check for NULL. diff --git a/src/help.c b/src/help.c --- a/src/help.c +++ b/src/help.c @@ -836,8 +836,6 @@ fix_help_buffer(void) continue; t2 = gettail(f2); e2 = vim_strrchr(t2, '.'); - if (e1 == NULL || e2 == NULL) - continue; if (e1 - f1 != e2 - f2 || fnamencmp(f1, f2, e1 - f1) != 0) continue; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4000, +/**/ 3999, /**/ 3998,