mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 23:00:57 +00:00
Merge pull request #1079 from gaul/cppcheck/shadowing
Avoid shadowing variable in FdEntity::Open
This commit is contained in:
commit
d267212289
@ -853,7 +853,6 @@ int FdEntity::Open(headers_t* pmeta, off_t size, time_t time, bool no_fd_lock_wa
|
|||||||
// try to open cache file
|
// try to open cache file
|
||||||
if(-1 != (fd = open(cachepath.c_str(), O_RDWR)) && pagelist.Serialize(cfstat, false)){
|
if(-1 != (fd = open(cachepath.c_str(), O_RDWR)) && pagelist.Serialize(cfstat, false)){
|
||||||
// succeed to open cache file and to load stats data
|
// succeed to open cache file and to load stats data
|
||||||
struct stat st;
|
|
||||||
memset(&st, 0, sizeof(struct stat));
|
memset(&st, 0, sizeof(struct stat));
|
||||||
if(-1 == fstat(fd, &st)){
|
if(-1 == fstat(fd, &st)){
|
||||||
S3FS_PRN_ERR("fstat is failed. errno(%d)", errno);
|
S3FS_PRN_ERR("fstat is failed. errno(%d)", errno);
|
||||||
|
Loading…
Reference in New Issue
Block a user