vim_getenv: Remove redundant NULL check.

This commit is contained in:
Justin M. Keyes
2017-05-20 19:40:38 +02:00
parent 6a7514feaa
commit bfb9cf1fc3

View File

@@ -601,8 +601,7 @@ const void *vim_env_iter_rev(const char delim,
char *vim_getenv(const char *name) char *vim_getenv(const char *name)
{ {
// init_path() should have been called before now. // init_path() should have been called before now.
assert(get_vim_var_str(VV_PROGPATH) assert(get_vim_var_str(VV_PROGPATH)[0] != NUL);
&& get_vim_var_str(VV_PROGPATH)[0] != NUL);
const char *kos_env_path = os_getenv(name); const char *kos_env_path = os_getenv(name);
if (kos_env_path != NULL) { if (kos_env_path != NULL) {