diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-04-19 21:10:21 +0200 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-04-19 21:10:21 +0200 |
commit | 7086d435e044e78a91145a9b82f393227475249f (patch) | |
tree | 15eeb78ad3f74083de8af701177849f6d067dfb7 /src/nvim/ex_getln.c | |
parent | 639504894610361198447ddaaa557b4877136682 (diff) | |
parent | 30cdba80ddc47a56810a095613a1e6b5a1529ff6 (diff) | |
download | rneovim-7086d435e044e78a91145a9b82f393227475249f.tar.gz rneovim-7086d435e044e78a91145a9b82f393227475249f.tar.bz2 rneovim-7086d435e044e78a91145a9b82f393227475249f.zip |
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>
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index b55b96315d..5fd5c2a345 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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); } /* |