mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Merge 'p' declaration with init in vim_version_dir()
This commit is contained in:
parent
bf2913bf74
commit
7b35830fa4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user