vim-patch:8.2.4235: invalid check for NULL pointer

Problem:    Invalid check for NULL pointer.
Solution:   Remove the check.
37cf413e3e
This commit is contained in:
Christian Clason 2022-01-28 09:33:07 +01:00 committed by zeertzjq
parent e691ef338c
commit 7114764ffb

View File

@ -290,7 +290,7 @@ static void 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);