From 26d5a981eb444acf9469853d6c4988140d20cb83 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 18 May 2018 09:07:42 +0200 Subject: do not pass NULL to os_getenv closes #8393 --- src/nvim/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index a4ed868af1..23cea3e592 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -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) { -- cgit