aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-20 19:40:38 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-05-20 19:40:38 +0200
commitbfb9cf1fc3fb377e4ca1430e95435fe7ad06282b (patch)
tree2ace0627744145b900fd7203e345ae6556d57105 /src
parent6a7514feaada0f46a1d16a37760847610e825dad (diff)
downloadrneovim-bfb9cf1fc3fb377e4ca1430e95435fe7ad06282b.tar.gz
rneovim-bfb9cf1fc3fb377e4ca1430e95435fe7ad06282b.tar.bz2
rneovim-bfb9cf1fc3fb377e4ca1430e95435fe7ad06282b.zip
vim_getenv: Remove redundant NULL check.
Diffstat (limited to 'src')
-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) {