diff --git a/src/fuse_getattr.cpp b/src/fuse_getattr.cpp index d74ddc8d..dd74680b 100644 --- a/src/fuse_getattr.cpp +++ b/src/fuse_getattr.cpp @@ -114,7 +114,8 @@ namespace l if(rv == -1) return -errno; - i = cache.insert({fusepath_,basepaths[0]}); + auto rv = cache.insert({fusepath_,basepaths[0]}); + i = rv.first; } fullpath = fs::path::make(i->second,fusepath_);