From: Bram Moolenaar Date: Tue, 4 Jan 2022 16:44:56 +0000 (+0000) Subject: patch 8.2.4000: Coverity warns for checking for NULL pointer after using it X-Git-Tag: v8.2.4000 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcd1635a4680d53090baa433996954bfe0642366;p=vim 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 index a36b671ec..519edca2b 100644 --- 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 index 2c280aff3..83e054a23 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4000, /**/ 3999, /**/