0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-01-04 16:44:56 +00:00
parent c024ed9233
commit fcd1635a46
2 changed files with 2 additions and 2 deletions

View 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;

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4000,
/**/
3999,
/**/