diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-18 09:07:42 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-18 19:04:37 +0200 |
commit | 26d5a981eb444acf9469853d6c4988140d20cb83 (patch) | |
tree | 617df8b0201bce295f954a0347a993c123a5bb41 /src/nvim/main.c | |
parent | e121b1dbe78cdf7ad46f493ca3a1cb83c190f719 (diff) | |
download | rneovim-26d5a981eb444acf9469853d6c4988140d20cb83.tar.gz rneovim-26d5a981eb444acf9469853d6c4988140d20cb83.tar.bz2 rneovim-26d5a981eb444acf9469853d6c4988140d20cb83.zip |
do not pass NULL to os_getenv
closes #8393
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |