mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
Merge 'p' declaration with init in vim_version_dir()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user