Skip to content

Commit

Permalink
fix 2c8e11d
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Apr 16, 2022
1 parent 2c8e11d commit 63dc7ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cache/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,9 @@ static bool oauth2_cache_file_set(oauth2_log_t *log, oauth2_cache_t *cache,
_oauth2_cache_files_clean(log, impl);

if (value == NULL) {
if (access(path, F_OK) == 0)
rc = _oauth2_cache_file_remove(log, path);
rc = (access(path, F_OK) == 0)
? _oauth2_cache_file_remove(log, path)
: true;
goto unlock;
}

Expand Down

0 comments on commit 63dc7ea

Please sign in to comment.