mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Merge pull request #3572 from Pyrohh/os_getenv
os/fs.c: Convert stray getenv() to os_getenv()
This commit is contained in:
commit
ef1d39bbbf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user