commit | d23a823669d93fb2a570a039173eefe4856ac806 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 10 18:45:26 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 10 18:45:26 2018 +0100 |
tree | 617130258eae70e3bd7ef7b6da9c494ffee7b572 | |
parent | 42443c7d7fecc3a2a72154bb6139b028438617c2 [diff] [blame] |
patch 8.0.1496: clearing a pointer takes two lines Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
diff --git a/src/spellfile.c b/src/spellfile.c index e5cc841..e9eacbe 100644 --- a/src/spellfile.c +++ b/src/spellfile.c
@@ -1352,8 +1352,7 @@ { if (c == '?' || c == '+' || c == '*') { - vim_free(slang->sl_comprules); - slang->sl_comprules = NULL; + VIM_CLEAR(slang->sl_comprules); crp = NULL; } else