Skip to content

Commit

Permalink
patch 8.2.4000: Coverity warns for checking for NULL pointer after us…
Browse files Browse the repository at this point in the history
…ing it

Problem:    Coverity warns for checking for NULL pointer after using it.
Solution:   Remove check for NULL.
  • Loading branch information
brammool committed Jan 4, 2022
1 parent c024ed9 commit fcd1635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/help.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4000,
/**/
3999,
/**/
Expand Down

0 comments on commit fcd1635

Please sign in to comment.