diff --git a/src/csync/vio/csync_vio_local_unix.cpp b/src/csync/vio/csync_vio_local_unix.cpp index 1f41f42f19ab3..b0e5957bb2ef7 100644 --- a/src/csync/vio/csync_vio_local_unix.cpp +++ b/src/csync/vio/csync_vio_local_unix.cpp @@ -124,7 +124,7 @@ std::unique_ptr csync_vio_local_readdir(csync_vio_handle_t *h if (vfs) { // Directly modifies file_stat->type. // We can ignore the return value since we're done here anyway. - vfs->statTypeVirtualFile(file_stat.get(), nullptr); + vfs->statTypeVirtualFile(file_stat.get(), &handle->path); } return file_stat;