From 00a5f155adb34576037fc43027c5f82eb1b034b5 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 23 Aug 2024 14:51:50 -0500 Subject: [PATCH] refactor --- .../src/drives/winfsp/remotewinfsp/remote_server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();