mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
Merge #2418: Remove char_u (4)
Reviewed-by: Scott Prager <splinterofchaos@gmail.com> Reviewed-by: Michael Reed <m.reed@mykolab.com> Reviewed-by: Eliseo Martínez <eliseomarmol@gmail.com>
This commit is contained in:
@@ -3825,7 +3825,6 @@ static void expand_shellcmd(char_u *filepat, int *num_file, char_u ***file,
|
||||
char_u *pat;
|
||||
int i;
|
||||
char_u *path;
|
||||
bool mustfree = false;
|
||||
garray_T ga;
|
||||
char_u *buf = xmalloc(MAXPATHL);
|
||||
size_t l;
|
||||
@@ -3849,7 +3848,7 @@ static void expand_shellcmd(char_u *filepat, int *num_file, char_u ***file,
|
||||
|| (pat[1] == '.' && vim_ispathsep(pat[2])))))
|
||||
path = (char_u *)".";
|
||||
else {
|
||||
path = vim_getenv((char_u *)"PATH", &mustfree);
|
||||
path = (char_u *)vim_getenv("PATH");
|
||||
if (path == NULL)
|
||||
path = (char_u *)"";
|
||||
}
|
||||
@@ -3900,8 +3899,7 @@ static void expand_shellcmd(char_u *filepat, int *num_file, char_u ***file,
|
||||
|
||||
xfree(buf);
|
||||
xfree(pat);
|
||||
if (mustfree)
|
||||
xfree(path);
|
||||
xfree(path);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user