diff src/buffer.c @ 15967:ddd82b1c9e9d v8.1.0989

patch 8.1.0989: various small code ugliness commit https://github.com/vim/vim/commit/bdace838c67c1bd94e55e34270a8325933891466 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 2 10:13:42 2019 +0100 patch 8.1.0989: various small code ugliness Problem: Various small code ugliness. Solution: Remove pointless NULL checks. Fix function calls. Fix typos. (Dominique Pelle, closes #4060)
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Mar 2019 10:15:06 +0100
parents 3a45b89639fb
children 2699db3e4d9d
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2163,11 +2163,9 @@ free_buf_options(
     clear_string_option(&buf->b_p_isk);
 #ifdef FEAT_VARTABS
     clear_string_option(&buf->b_p_vsts);
-    if (buf->b_p_vsts_nopaste)
-	vim_free(buf->b_p_vsts_nopaste);
+    vim_free(buf->b_p_vsts_nopaste);
     buf->b_p_vsts_nopaste = NULL;
-    if (buf->b_p_vsts_array)
-	vim_free(buf->b_p_vsts_array);
+    vim_free(buf->b_p_vsts_array);
     buf->b_p_vsts_array = NULL;
     clear_string_option(&buf->b_p_vts);
     VIM_CLEAR(buf->b_p_vts_array);