From: Bram Moolenaar Date: Thu, 27 Jan 2022 20:47:03 +0000 (+0000) Subject: patch 8.2.4235: invalid check for NULL pointer X-Git-Tag: v8.2.4235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37cf413e3e768b76c975e4a7081472d75d649c72;p=vim 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 index 49eb3d7df..6602eeac5 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 7247ca753..49942b5e0 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4235, /**/ 4234, /**/