diff --git a/repertory/librepertory/src/drives/fuse/fuse_base.cpp b/repertory/librepertory/src/drives/fuse/fuse_base.cpp index 14eff27e..92706a2d 100644 --- a/repertory/librepertory/src/drives/fuse/fuse_base.cpp +++ b/repertory/librepertory/src/drives/fuse/fuse_base.cpp @@ -765,8 +765,9 @@ void fuse_base::raise_fuse_event(std::string_view function_name, if (((config_.get_event_level() >= fuse_event::level) && (ret != 0)) || (config_.get_event_level() >= event_level::trace)) { + std::string func{function_name}; event_system::instance().raise( - utils::string::right_trim(function_name, '_'), api_path, ret); + utils::string::right_trim(func, '_'), api_path, ret); } }