diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-17 22:02:46 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-17 22:02:46 +0200 |
commit | ce7cba6d7f36e79d52825215ba7b6848397b0440 (patch) | |
tree | cf249b863e9bfa1a6943b91dc293cc38bf71f6a7 /src/nvim/os/env.c | |
parent | 7debba9d4295f09bc338a5f0718abdc54d565a56 (diff) | |
parent | 2eb9150a4fcb8f43599e5f470cbcb3a12195d910 (diff) | |
download | rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.gz rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.bz2 rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.zip |
Merge #6533 'Fix PVS-studio warnings'
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index ad51e598c1..f3187de182 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -641,7 +641,7 @@ char *vim_getenv(const char *name) exe_name, "share" _PATHSEPSTR "nvim" _PATHSEPSTR "runtime" _PATHSEPSTR, MAXPATHL) == OK) { - vim_path = exe_name; + vim_path = exe_name; // -V507 } } } @@ -675,6 +675,7 @@ char *vim_getenv(const char *name) vim_path = NULL; } } + assert(vim_path != exe_name); } #ifdef HAVE_PATHDEF |