diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp index 19a835a9..8af50ad4 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp @@ -197,8 +197,9 @@ auto remote_server::fuse_fgetattr( static_cast(__FUNCTION__), }; + r_stat = {}; + const auto file_path = construct_path(path); - memset(&r_stat, 0, sizeof(remote::stat)); auto res{ has_compat_open_info(handle, EBADF), @@ -301,8 +302,9 @@ auto remote_server::fuse_getattr(const char *path, remote::stat &r_st, static_cast(__FUNCTION__), }; + r_st = {}; + const auto file_path = construct_path(path); - memset(&r_st, 0, sizeof(remote::stat)); directory = utils::file::directory(file_path).exists();