Merge 'p' declaration with init in vim_version_dir()

This commit is contained in:
Mark Bainter 2015-04-27 17:55:08 +00:00
parent bf2913bf74
commit 7b35830fa4

View File

@ -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;
}