mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
refactor: fix PVS warnings (#23200)
This commit is contained in:
@@ -3484,7 +3484,7 @@ char *vim_gettempdir(void)
|
||||
static int notfound = 0;
|
||||
bool exists = false;
|
||||
if (vim_tempdir == NULL || !(exists = os_isdir(vim_tempdir))) {
|
||||
if (vim_tempdir != NULL && !exists) {
|
||||
if (vim_tempdir != NULL) {
|
||||
notfound++;
|
||||
if (notfound == 1) {
|
||||
ELOG("tempdir disappeared (antivirus or broken cleanup job?): %s", vim_tempdir);
|
||||
|
Reference in New Issue
Block a user