mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
refactor: fix clang/PVS warnings (#23731)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user