changeset 27414:b2d0357fec12 v8.2.4235

patch 8.2.4235: invalid check for NULL pointer Commit: https://github.com/vim/vim/commit/37cf413e3e768b76c975e4a7081472d75d649c72 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Jan 2022 22:00:04 +0100
parents ab980265df4a
children ff48162d4ad6
files src/getchar.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,