forked from aniani/vim
patch 8.2.3947: unnecessary check for NULL pointer
Problem: Unnecessary check for NULL pointer. Solution: Remove the check. (closes #9434)
This commit is contained in:
@@ -7411,9 +7411,9 @@ changedir_func(
|
||||
# endif
|
||||
new_dir = NameBuff;
|
||||
}
|
||||
dir_differs = new_dir == NULL || pdir == NULL
|
||||
dir_differs = pdir == NULL
|
||||
|| pathcmp((char *)pdir, (char *)new_dir, -1) != 0;
|
||||
if (new_dir == NULL || (dir_differs && vim_chdir(new_dir)))
|
||||
if (dir_differs && vim_chdir(new_dir))
|
||||
{
|
||||
emsg(_(e_failed));
|
||||
vim_free(pdir);
|
||||
|
Reference in New Issue
Block a user