1
0
forked from aniani/vim

patch 8.1.0444: unnecessary check for NULL pointer

Problem:    Unnecessary check for NULL pointer.
Solution:   Remove check and call vim_free() directly.
This commit is contained in:
Bram Moolenaar 2018-10-02 14:15:12 +02:00
parent 95bafa296a
commit 54ade9f7e3
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -792,6 +792,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
444,
/**/
443,
/**/