aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-01-28 09:33:07 +0100
committerzeertzjq <zeertzjq@outlook.com>2022-01-28 19:03:39 +0800
commit7114764ffbabe7024be6c9ed594423894d7aa95d (patch)
tree9243990fe8a6befbed32abf65fa958bea17b6020
parente691ef338c04893f3766fe9ba4e368cf8d5d5ad0 (diff)
downloadrneovim-7114764ffbabe7024be6c9ed594423894d7aa95d.tar.gz
rneovim-7114764ffbabe7024be6c9ed594423894d7aa95d.tar.bz2
rneovim-7114764ffbabe7024be6c9ed594423894d7aa95d.zip
vim-patch:8.2.4235: invalid check for NULL pointer
Problem: Invalid check for NULL pointer. Solution: Remove the check. https://github.com/vim/vim/commit/37cf413e3e768b76c975e4a7081472d75d649c72
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 9c8872d2be..e3c338c500 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -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);