]> granicus.if.org Git - vim/commitdiff
patch 8.2.4235: invalid check for NULL pointer v8.2.4235
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Jan 2022 20:47:03 +0000 (20:47 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Jan 2022 20:47:03 +0000 (20:47 +0000)
Problem:    Invalid check for NULL pointer.
Solution:   Remove the check.

src/getchar.c
src/version.c

index 49eb3d7df9e866bce753d68a75bd792aaa89d14e..6602eeac53636fb9f62f08b678d9d8ad3e7abe8e 100644 (file)
@@ -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)
index 7247ca75378c8aff133f4caef156d0db102a4276..49942b5e0237a9b54faddd7c4a591007df9d1245 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4235,
 /**/
     4234,
 /**/