diff options
author | Mark Bainter <mbainter+github@gmail.com> | 2015-04-27 17:55:08 +0000 |
---|---|---|
committer | Mark Bainter <mbainter+github@gmail.com> | 2015-05-06 21:34:19 -0500 |
commit | 7b35830fa472ede85b9322787b4a0a1cc3733e8b (patch) | |
tree | a4f8e84cc9e5c4c7580d61da57ca8334ea406cfb /src | |
parent | bf2913bf74f3df97a3398d69d3f8aa9662717f75 (diff) | |
download | rneovim-7b35830fa472ede85b9322787b4a0a1cc3733e8b.tar.gz rneovim-7b35830fa472ede85b9322787b4a0a1cc3733e8b.tar.bz2 rneovim-7b35830fa472ede85b9322787b4a0a1cc3733e8b.zip |
Merge 'p' declaration with init in vim_version_dir()
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/os/env.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index 4ea95691be..fd115ab2b3 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -379,12 +379,10 @@ void expand_env_esc(char_u *srcp, char_u *dst, int dstlen, bool esc, bool one, /// @param vimdir directory to test static char *vim_version_dir(const char *vimdir) { - char *p; - if (vimdir == NULL || *vimdir == NUL) { return NULL; } - p = concat_fnames(vimdir, VIM_VERSION_NODOT, true); + char *p = concat_fnames(vimdir, VIM_VERSION_NODOT, true); if (os_isdir((char_u *)p)) { return p; } |