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:
@@ -125,8 +125,7 @@ get_beval_info(
|
|||||||
*textp = lbuf;
|
*textp = lbuf;
|
||||||
*colp = col;
|
*colp = col;
|
||||||
#ifdef FEAT_VARTABS
|
#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);
|
beval->vts = tabstop_copy(wp->w_buffer->b_p_vts_array);
|
||||||
#endif
|
#endif
|
||||||
beval->ts = wp->w_buffer->b_p_ts;
|
beval->ts = wp->w_buffer->b_p_ts;
|
||||||
|
@@ -792,6 +792,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
444,
|
||||||
/**/
|
/**/
|
||||||
443,
|
443,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user