aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-10-31 03:22:05 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-10-31 03:22:05 -0400
commitef1d39bbbf960d0b9f07aee333a34239d430a4db (patch)
tree28ea5c42237736c44bd1c5335f85ffaa737d4966
parente1bc7924039e223bfe118316237ae84b807054a6 (diff)
parent3f8a2faff44cb6dec3a2c28e5a62bd7ea5ad82af (diff)
downloadrneovim-ef1d39bbbf960d0b9f07aee333a34239d430a4db.tar.gz
rneovim-ef1d39bbbf960d0b9f07aee333a34239d430a4db.tar.bz2
rneovim-ef1d39bbbf960d0b9f07aee333a34239d430a4db.zip
Merge pull request #3572 from Pyrohh/os_getenv
os/fs.c: Convert stray getenv() to os_getenv()
-rw-r--r--src/nvim/os/fs.c5
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;
}