Skip to content

Commit

Permalink
patch 8.2.4235: invalid check for NULL pointer
Browse files Browse the repository at this point in the history
Problem:    Invalid check for NULL pointer.
Solution:   Remove the check.
  • Loading branch information
brammool committed Jan 27, 2022
1 parent b3d8398 commit 37cf413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/getchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ delete_buff_tail(buffheader_T *buf, int slen)
{
int len;

if (buf->bh_curr == NULL || buf->bh_curr->b_str == NULL)
if (buf->bh_curr == NULL)
return; // nothing to delete
len = (int)STRLEN(buf->bh_curr->b_str);
if (len >= slen)
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 */
/**/
4235,
/**/
4234,
/**/
Expand Down

0 comments on commit 37cf413

Please sign in to comment.