mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
95bafa296a
commit
54ade9f7e3
@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user