To: vim_dev@googlegroups.com Subject: Patch 8.2.4235 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4235 Problem: Invalid check for NULL pointer. Solution: Remove the check. Files: src/getchar.c *** ../vim-8.2.4234/src/getchar.c 2022-01-27 19:27:10.450531357 +0000 --- src/getchar.c 2022-01-27 20:45:08.954719011 +0000 *************** *** 254,260 **** { int len; ! if (buf->bh_curr == NULL || buf->bh_curr->b_str == NULL) return; // nothing to delete len = (int)STRLEN(buf->bh_curr->b_str); if (len >= slen) --- 254,260 ---- { int len; ! if (buf->bh_curr == NULL) return; // nothing to delete len = (int)STRLEN(buf->bh_curr->b_str); if (len >= slen) *** ../vim-8.2.4234/src/version.c 2022-01-27 19:58:21.858975599 +0000 --- src/version.c 2022-01-27 20:46:07.421872365 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4235, /**/ -- The Characters and incidents portrayed and the names used are fictitious and any similarity to the names, characters, or history of any person is entirely accidental and unintentional. Signed RICHARD M. NIXON "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///