diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-17 03:23:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 03:23:34 +0200 |
commit | 060ce0e0bc0e5b332f296246e389a4292a0f1d9b (patch) | |
tree | 5d0d65447ada2ccb26b0a4140ccbfb1325c5efbc /src/nvim/os | |
parent | 96ede7c5679bf3ef9e318c663965978a87842402 (diff) | |
download | rneovim-060ce0e0bc0e5b332f296246e389a4292a0f1d9b.tar.gz rneovim-060ce0e0bc0e5b332f296246e389a4292a0f1d9b.tar.bz2 rneovim-060ce0e0bc0e5b332f296246e389a4292a0f1d9b.zip |
startup: init v:progpath before calling vim_getenv (#6755)
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/env.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index a7d1037cfc..713fa5ea96 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -600,6 +600,10 @@ const void *vim_env_iter_rev(const char delim, /// @param name Environment variable to expand char *vim_getenv(const char *name) { + // init_path() should have been called before now. + assert(get_vim_var_str(VV_PROGPATH) + && get_vim_var_str(VV_PROGPATH)[0] != NUL); + const char *kos_env_path = os_getenv(name); if (kos_env_path != NULL) { return xstrdup(kos_env_path); |