diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-02 10:13:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-02 10:13:42 +0100 |
commit | bdace838c67c1bd94e55e34270a8325933891466 (patch) | |
tree | cf80ca41305e4c04a2ccb293b6634b20fb235fbe /src/buffer.c | |
parent | d82a81cad93708a6c180e59119db4818cc38c1a9 (diff) |
patch 8.1.0989: various small code uglinessv8.1.0989
Problem: Various small code ugliness.
Solution: Remove pointless NULL checks. Fix function calls. Fix typos.
(Dominique Pelle, closes #4060)
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index 49d38ed31d..158c30a5a1 100644 --- 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); |