summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index e54ba4e2de..21ca0fa48b 100644
--- a/src/option.c
+++ b/src/option.c
@@ -11735,8 +11735,7 @@ ExpandOldSetting(int *num_file, char_u ***file)
if (buf == NULL)
{
- vim_free(*file);
- *file = NULL;
+ VIM_CLEAR(*file);
return FAIL;
}