mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim_getenv: Remove redundant NULL check.
This commit is contained in:
parent
6a7514feaa
commit
bfb9cf1fc3
@ -601,8 +601,7 @@ const void *vim_env_iter_rev(const char delim,
|
||||
char *vim_getenv(const char *name)
|
||||
{
|
||||
// init_path() should have been called before now.
|
||||
assert(get_vim_var_str(VV_PROGPATH)
|
||||
&& get_vim_var_str(VV_PROGPATH)[0] != NUL);
|
||||
assert(get_vim_var_str(VV_PROGPATH)[0] != NUL);
|
||||
|
||||
const char *kos_env_path = os_getenv(name);
|
||||
if (kos_env_path != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user