changeset 26943:61f686b38df9

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 <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Jan 2022 17:45:04 +0100
parents 6902cb522a12
children 8dbdd68627bd
files src/help.c src/version.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,