mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
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]: 412d246be7
This commit is contained in:
@@ -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)
|
static bool is_executable_in_path(const char_u *name, char_u **abspath)
|
||||||
FUNC_ATTR_NONNULL_ARG(1)
|
FUNC_ATTR_NONNULL_ARG(1)
|
||||||
{
|
{
|
||||||
const char *path = getenv("PATH");
|
const char *path = os_getenv("PATH");
|
||||||
// PATH environment variable does not exist or is empty.
|
if (path == NULL) {
|
||||||
if (path == NULL || *path == NUL) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user