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:
parent
b3d83980d2
commit
37cf413e3e
@ -254,7 +254,7 @@ delete_buff_tail(buffheader_T *buf, int slen)
|
|||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (buf->bh_curr == NULL || buf->bh_curr->b_str == NULL)
|
if (buf->bh_curr == NULL)
|
||||||
return; // nothing to delete
|
return; // nothing to delete
|
||||||
len = (int)STRLEN(buf->bh_curr->b_str);
|
len = (int)STRLEN(buf->bh_curr->b_str);
|
||||||
if (len >= slen)
|
if (len >= slen)
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4235,
|
||||||
/**/
|
/**/
|
||||||
4234,
|
4234,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user