aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/os/env.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index 713fa5ea96..de0cd10d9c 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -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) {