diff options
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r-- | src/nvim/os_unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 8180a2e8ac..35a7942059 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -553,8 +553,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, *num_file = j; if (*num_file == 0) { // rejected all entries - xfree(*file); - *file = NULL; + XFREE_CLEAR(*file); goto notfound; } |