diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-27 20:47:03 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-27 20:47:03 +0000 |
commit | 37cf413e3e768b76c975e4a7081472d75d649c72 (patch) | |
tree | e3f24a7a0848805b4e787f1abd0de61ce029d0af /src | |
parent | b3d83980d2ac0f7a25314270416f17af874ca269 (diff) |
patch 8.2.4235: invalid check for NULL pointerv8.2.4235
Problem: Invalid check for NULL pointer.
Solution: Remove the check.
Diffstat (limited to 'src')
-rw-r--r-- | src/getchar.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index 49eb3d7df9..6602eeac53 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -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) diff --git a/src/version.c b/src/version.c index 7247ca7537..49942b5e02 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4235, +/**/ 4234, /**/ 4233, |