summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-10-02 14:15:12 +0200
committerBram Moolenaar <Bram@vim.org>2018-10-02 14:15:12 +0200
commit54ade9f7e3b5cfd582aee03591a2b0884b9a96ab (patch)
treed059715f41b22b777ebfccdad727c9d321e62d1a
parent95bafa296ae97bf420d5c74dd6db517b404c5df7 (diff)
downloadvim-git-54ade9f7e3b5cfd582aee03591a2b0884b9a96ab.tar.gz
patch 8.1.0444: unnecessary check for NULL pointerv8.1.0444
Problem: Unnecessary check for NULL pointer. Solution: Remove check and call vim_free() directly.
-rw-r--r--src/beval.c3
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/beval.c b/src/beval.c
index 74750a27d..3025b2cc9 100644
--- 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;
diff --git a/src/version.c b/src/version.c
index 8f75fef3a..e7ce60450 100644
--- 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,