Merge pull request #1089 from gaul/null-dereference

Avoid null dereference
This commit is contained in:
Takeshi Nakatani 2019-07-15 04:17:10 +09:00 committed by GitHub
commit 5bbcd3b981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_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;