On Wed, Jun 15, 2016 at 01:45:23AM +0800, Huawei Xie wrote:
> Value returned from fstat is not checked for errors before being used.
> Fixes the coverity issue:
>
> static uint64_t
> get_blk_size(int fd)
> {
> struct stat stat;
>
> fstat(fd, &stat);
> return (uint64_t)stat.st_bl
Value returned from fstat is not checked for errors before being used.
Fixes the coverity issue:
static uint64_t
get_blk_size(int fd)
{
struct stat stat;
fstat(fd, &stat);
return (uint64_t)stat.st_blksize;
>>> CID 107103 (#1 of 1): Unchecked return value from library (CHE
2 matches
Mail list logo