mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
e691ef338c
commit
7114764ffb
@ -290,7 +290,7 @@ static void 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user