summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TSRM/tsrm_virtual_cwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 0a351db57f..0df0566238 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -591,7 +591,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
free(free_path);
#ifdef REALPATH_CACHE
- if (ret == 0 && use_realpath && CWDG(realpath_cache_size_limit)) {
+ if (use_realpath && CWDG(realpath_cache_size_limit)) {
realpath_cache_add(orig_path, orig_path_len, state->cwd, state->cwd_length, t TSRMLS_CC);
}
#endif