refactor: fix clang/PVS warnings (#23731)

This commit is contained in:
zeertzjq
2023-05-23 18:11:03 +08:00
committed by GitHub
parent 30c02781ca
commit 677e02be4e
5 changed files with 6 additions and 4 deletions

View File

@@ -3481,8 +3481,7 @@ void vim_deltempdir(void)
char *vim_gettempdir(void)
{
static int notfound = 0;
bool exists = false;
if (vim_tempdir == NULL || !(exists = os_isdir(vim_tempdir))) {
if (vim_tempdir == NULL || !os_isdir(vim_tempdir)) {
if (vim_tempdir != NULL) {
notfound++;
if (notfound == 1) {