From: Bram Moolenaar Date: Tue, 2 Oct 2018 12:15:12 +0000 (+0200) Subject: patch 8.1.0444: unnecessary check for NULL pointer X-Git-Tag: v8.1.0444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54ade9f7e3b5cfd582aee03591a2b0884b9a96ab;p=vim patch 8.1.0444: unnecessary check for NULL pointer Problem: Unnecessary check for NULL pointer. Solution: Remove check and call vim_free() directly. --- 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 @@ -792,6 +792,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 444, /**/ 443, /**/