do not pass NULL to os_getenv

closes #8393
This commit is contained in:
Justin M. Keyes
2018-05-18 09:07:42 +02:00
parent e121b1dbe7
commit 26d5a981eb
5 changed files with 32 additions and 23 deletions

View File

@@ -1849,6 +1849,7 @@ static void source_startup_scripts(const mparm_T *const parmp)
/// @return FAIL if the environment variable was not executed,
/// OK otherwise.
static int process_env(char *env, bool is_viminit)
FUNC_ATTR_NONNULL_ALL
{
const char *initstr = os_getenv(env);
if (initstr != NULL) {