]> granicus.if.org Git - vim/commitdiff
patch 8.2.4000: Coverity warns for checking for NULL pointer after using it v8.2.4000
authorBram Moolenaar <Bram@vim.org>
Tue, 4 Jan 2022 16:44:56 +0000 (16:44 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Jan 2022 16:44:56 +0000 (16:44 +0000)
Problem:    Coverity warns for checking for NULL pointer after using it.
Solution:   Remove check for NULL.

src/help.c
src/version.c

index a36b671ec9a2fe6c5d828d08c54857e3643fa8e7..519edca2bb323cccff7473adcd1a6ae11956fde0 100644 (file)
@@ -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;
index 2c280aff361546ee25739d48ead812a51e21372b..83e054a2382ce4e791fef14116fe025918a41af7 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4000,
 /**/
     3999,
 /**/