# HG changeset patch # User Bram Moolenaar # Date 1643317204 -3600 # Node ID b2d0357fec12d8746ef5cec9d9048ddc161bef66 # Parent ab980265df4ad246b2749318da6db8e9725190e5 patch 8.2.4235: invalid check for NULL pointer Commit: https://github.com/vim/vim/commit/37cf413e3e768b76c975e4a7081472d75d649c72 Author: Bram Moolenaar Date: Thu Jan 27 20:47:03 2022 +0000 patch 8.2.4235: invalid check for NULL pointer Problem: Invalid check for NULL pointer. Solution: Remove the check. diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -254,7 +254,7 @@ delete_buff_tail(buffheader_T *buf, int { 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 --- 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,