diff options
author | Michael Reed <m.reed@mykolab.com> | 2015-10-31 01:58:40 -0400 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-10-31 02:05:58 -0400 |
commit | 3f8a2faff44cb6dec3a2c28e5a62bd7ea5ad82af (patch) | |
tree | 28ea5c42237736c44bd1c5335f85ffaa737d4966 /src | |
parent | e1bc7924039e223bfe118316237ae84b807054a6 (diff) | |
download | rneovim-3f8a2faff44cb6dec3a2c28e5a62bd7ea5ad82af.tar.gz rneovim-3f8a2faff44cb6dec3a2c28e5a62bd7ea5ad82af.tar.bz2 rneovim-3f8a2faff44cb6dec3a2c28e5a62bd7ea5ad82af.zip |
os/fs.c: Convert stray getenv() to os_getenv()
This is the last direct getenv() call in the tree (besides the one in
os_getenv()); most of the work was already done in [1].
[1]: 412d246be71bd99cb4edde4e6f984b0b0d91bcd9
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/os/fs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 05f0f53c63..3fb00eb24e 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -140,9 +140,8 @@ static bool is_executable(const char_u *name) static bool is_executable_in_path(const char_u *name, char_u **abspath) FUNC_ATTR_NONNULL_ARG(1) { - const char *path = getenv("PATH"); - // PATH environment variable does not exist or is empty. - if (path == NULL || *path == NUL) { + const char *path = os_getenv("PATH"); + if (path == NULL) { return false; } |