0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.4235: invalid check for NULL pointer

Problem:    Invalid check for NULL pointer.
Solution:   Remove the check.
This commit is contained in:
Bram Moolenaar 2022-01-27 20:47:03 +00:00
parent b3d83980d2
commit 37cf413e3e
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

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