diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-19 22:49:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 22:49:14 +0800 |
commit | ea52961c54797fc27e305eb4bb11a5d2c4cdda58 (patch) | |
tree | a2a56b9283ce94998da9bf08073de21df2a28124 /src/nvim/fileio.c | |
parent | 0ad5237162a05f0f04c74eab1961166f4f74254b (diff) | |
download | rneovim-ea52961c54797fc27e305eb4bb11a5d2c4cdda58.tar.gz rneovim-ea52961c54797fc27e305eb4bb11a5d2c4cdda58.tar.bz2 rneovim-ea52961c54797fc27e305eb4bb11a5d2c4cdda58.zip |
refactor: fix PVS warnings (#23200)
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 52fafa6a21..bb17382f98 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -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); |