aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-23 18:11:03 +0800
committerGitHub <noreply@github.com>2023-05-23 18:11:03 +0800
commit677e02be4e1255435a39d25a4b12ecbed4fff37b (patch)
tree9411b30ef70fc0682d07c1bc17f3aa697b07b0ac /src/nvim/fileio.c
parent30c02781cac103312e022d62797c08fef0f3e6c1 (diff)
downloadrneovim-677e02be4e1255435a39d25a4b12ecbed4fff37b.tar.gz
rneovim-677e02be4e1255435a39d25a4b12ecbed4fff37b.tar.bz2
rneovim-677e02be4e1255435a39d25a4b12ecbed4fff37b.zip
refactor: fix clang/PVS warnings (#23731)
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 57aa063504..e60007bf88 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -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) {