comparison src/option.c @ 13244:ac42c4b11dbc v8.0.1496

patch 8.0.1496: clearing a pointer takes two lines commit https://github.com/vim/vim/commit/d23a823669d93fb2a570a039173eefe4856ac806 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 10 18:45:26 2018 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2018 19:00:07 +0100
parents 5b0faf628a55
children 65c3e8259124
comparison
equal deleted inserted replaced
13243:899b19739188 13244:ac42c4b11dbc
11733 * what happens in do_set(). */ 11733 * what happens in do_set(). */
11734 buf = vim_strsave_escaped(var, escape_chars); 11734 buf = vim_strsave_escaped(var, escape_chars);
11735 11735
11736 if (buf == NULL) 11736 if (buf == NULL)
11737 { 11737 {
11738 vim_free(*file); 11738 VIM_CLEAR(*file);
11739 *file = NULL;
11740 return FAIL; 11739 return FAIL;
11741 } 11740 }
11742 11741
11743 #ifdef BACKSLASH_IN_FILENAME 11742 #ifdef BACKSLASH_IN_FILENAME
11744 /* For MS-Windows et al. we don't double backslashes at the start and 11743 /* For MS-Windows et al. we don't double backslashes at the start and