From 7b35830fa472ede85b9322787b4a0a1cc3733e8b Mon Sep 17 00:00:00 2001 From: Mark Bainter Date: Mon, 27 Apr 2015 17:55:08 +0000 Subject: Merge 'p' declaration with init in vim_version_dir() --- src/nvim/os/env.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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; } -- cgit