changeset 14865:ad5b977b5ad1 v8.1.0444

patch 8.1.0444: unnecessary check for NULL pointer commit https://github.com/vim/vim/commit/54ade9f7e3b5cfd582aee03591a2b0884b9a96ab Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 2 14:15:12 2018 +0200 patch 8.1.0444: unnecessary check for NULL pointer Problem: Unnecessary check for NULL pointer. Solution: Remove check and call vim_free() directly.
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Oct 2018 14:30:07 +0200
parents 40ef13331e02
children 2cc6cfa2b804
files src/beval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/beval.c
+++ b/src/beval.c
@@ -125,8 +125,7 @@ get_beval_info(
 		*textp = lbuf;
 		*colp = col;
 #ifdef FEAT_VARTABS
-		if (beval->vts)
-		    vim_free(beval->vts);
+		vim_free(beval->vts);
 		beval->vts = tabstop_copy(wp->w_buffer->b_p_vts_array);
 #endif
 		beval->ts = wp->w_buffer->b_p_ts;
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    444,
+/**/
     443,
 /**/
     442,