aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index b2295ea0be..af63ed3c4f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1433,10 +1433,8 @@ scripterror:
char_u *r;
r = concat_fnames(p, path_tail(alist_name(&GARGLIST[0])), TRUE);
- if (r != NULL) {
- vim_free(p);
- p = r;
- }
+ vim_free(p);
+ p = r;
}
#ifdef USE_FNAME_CASE