Skip to content

Commit 63dc7ea

Browse files
committed
fix 2c8e11d
Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
1 parent 2c8e11d commit 63dc7ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cache/file.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,9 @@ static bool oauth2_cache_file_set(oauth2_log_t *log, oauth2_cache_t *cache,
497497
_oauth2_cache_files_clean(log, impl);
498498

499499
if (value == NULL) {
500-
if (access(path, F_OK) == 0)
501-
rc = _oauth2_cache_file_remove(log, path);
500+
rc = (access(path, F_OK) == 0)
501+
? _oauth2_cache_file_remove(log, path)
502+
: true;
502503
goto unlock;
503504
}
504505

0 commit comments

Comments
 (0)