From d23a823669d93fb2a570a039173eefe4856ac806 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 10 Feb 2018 18:45:26 +0100 Subject: 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) --- src/spellfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/spellfile.c') diff --git a/src/spellfile.c b/src/spellfile.c index e5cc84164..e9eacbecb 100644 --- a/src/spellfile.c +++ b/src/spellfile.c @@ -1352,8 +1352,7 @@ read_compound(FILE *fd, slang_T *slang, int len) { if (c == '?' || c == '+' || c == '*') { - vim_free(slang->sl_comprules); - slang->sl_comprules = NULL; + VIM_CLEAR(slang->sl_comprules); crp = NULL; } else -- cgit v1.2.1