mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
getenv: return NULL if empty #2574
Making an environment variable empty can be a way of unsetting it for platforms that don't support unsetenv(). In most cases, we treat empty variables as having been unset. For all others, use os_env_exists().
This commit is contained in:
@@ -743,7 +743,7 @@ void ex_messages(exarg_T *eap)
|
||||
msg_hist_off = TRUE;
|
||||
|
||||
s = os_getenv("LANG");
|
||||
if (s != NULL && *s != NUL)
|
||||
if (s)
|
||||
msg_attr((char_u *)
|
||||
_("Messages maintainer: Bram Moolenaar <Bram@vim.org>"),
|
||||
hl_attr(HLF_T));
|
||||
|
Reference in New Issue
Block a user