]> granicus.if.org Git - vim/commitdiff
patch 8.1.0444: unnecessary check for NULL pointer v8.1.0444
authorBram Moolenaar <Bram@vim.org>
Tue, 2 Oct 2018 12:15:12 +0000 (14:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 2 Oct 2018 12:15:12 +0000 (14:15 +0200)
Problem:    Unnecessary check for NULL pointer.
Solution:   Remove check and call vim_free() directly.

src/beval.c
src/version.c

index 74750a27d04407d174958af3c9fb70e1bcc3f23a..3025b2cc97024e65423a977ff6cf07105480ef31 100644 (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;
index 8f75fef3a9811542086765066c0b628ae9e87e30..e7ce60450b9126f3f3dae9eeda28f8289d407fd2 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    444,
 /**/
     443,
 /**/