mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
f_environ: cleanup/refactor
- use os_getenvname_at_index / os_getenv - f_getenv: empty (*p == NUL) is not null (undefined)
This commit is contained in:

committed by
Justin M. Keyes

parent
fd66ad2262
commit
d55b12ea50
@@ -45,6 +45,7 @@ void env_init(void)
|
||||
}
|
||||
|
||||
/// Like getenv(), but returns NULL if the variable is empty.
|
||||
/// @see os_env_exists
|
||||
const char *os_getenv(const char *name)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
|
Reference in New Issue
Block a user