mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
Merge pull request #1089 from gaul/null-dereference
Avoid null dereference
This commit is contained in:
commit
5bbcd3b981
@ -893,8 +893,9 @@ static int s3fs_getattr(const char* _path, struct stat* stbuf)
|
||||
}
|
||||
stbuf->st_blksize = 4096;
|
||||
stbuf->st_blocks = get_blocks(stbuf->st_size);
|
||||
}
|
||||
|
||||
S3FS_PRN_DBG("[path=%s] uid=%u, gid=%u, mode=%04o", path, (unsigned int)(stbuf->st_uid), (unsigned int)(stbuf->st_gid), stbuf->st_mode);
|
||||
}
|
||||
S3FS_MALLOCTRIM(0);
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user