summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 7d86e460e1..67a2fc06de 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3625,7 +3625,6 @@ expand_env_esc(srcp, dst, dstlen, esc, startstr)
xpc.xp_context = EXPAND_FILES;
var = ExpandOne(&xpc, dst, NULL,
WILD_ADD_SLASH|WILD_SILENT, WILD_EXPAND_FREE);
- ExpandCleanup(&xpc);
mustfree = TRUE;
}
@@ -9363,7 +9362,7 @@ FreeWild(count, files)
int count;
char_u **files;
{
- if (files == NULL || count <= 0)
+ if (count <= 0 || files == NULL)
return;
#if defined(__EMX__) && defined(__ALWAYS_HAS_TRAILING_NULL_POINTER) /* XXX */
/*